Fixed: Compilation with OS X SDK 10.10

This commit is contained in:
kervala 2015-01-10 20:33:02 +01:00
parent 0a6f13de74
commit 0b6bfe2abd

View file

@ -1483,7 +1483,7 @@ bool CDriverGL::createWindow(const GfxMode &mode)
[[CocoaApplicationDelegate alloc] initWithDriver:this];
// set the application delegate, this will handle window/app close events
[NSApp setDelegate:appDelegate];
[NSApp setDelegate:(id<NSFileManagerDelegate>)appDelegate];
// bind the close button of the window to applicationShouldTerminate
id closeButton = [cocoa_window standardWindowButton:NSWindowCloseButton];