From ec48a92706a0d73980888301a1394b27a97a3a12 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Sun, 22 Nov 2015 16:52:08 +0900 Subject: [PATCH] ui/cocoa: fix for warning on MacOS X 10.10 Under some environment on MacOS X 10.10, the Objective-C compiler confuse which object's setDelegate is used actually when we use just 'NSApp'. It is not fixed perfectly by commit 2a4c8c53dabf564142d5329b9ff8a82468324fd6. So we should specify delegate protocol. Change-Id: Ia5638d3169ae9251522eab6308ff0ba5d8a28874 Signed-off-by: SeokYeon Hwang --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index fabb98c..75832eb 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1233,7 +1233,7 @@ int main (int argc, const char * argv[]) { // Create an Application controller QemuCocoaAppController *appController = [[QemuCocoaAppController alloc] init]; - [NSApp setDelegate:appController]; + [[NSApplication sharedApplication] setDelegate:appController]; // Start the main event loop [NSApp run]; -- 2.7.4