Fix warning when compiling against OS X 10.10 SDK.
Something broke NSApp compatibility object in 10.10 and its setDelegate: expects NSFileManagerDelegate, not NSApplicationDelegate, and the compiler warns about. Use the equivalent [NSApplication sharedApplication] object to fix this. Also cast appcontroller to the expected type, because passing untyped object to setDelegate: yields a warning as well. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
87f55e5d14
commit
a404093ec8
@ -411,7 +411,7 @@ bool wxApp::DoInitGui()
|
||||
}
|
||||
|
||||
appcontroller = OSXCreateAppController();
|
||||
[NSApp setDelegate:appcontroller];
|
||||
[[NSApplication sharedApplication] setDelegate:(id wxOSX_10_6_AND_LATER(<NSApplicationDelegate>))appcontroller];
|
||||
[NSColor setIgnoresAlpha:NO];
|
||||
|
||||
// calling finishLaunching so early before running the loop seems to trigger some 'MenuManager compatibility' which leads
|
||||
|
Loading…
Reference in New Issue
Block a user