1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Fixing Xcode 5 warning

Xcode 5 has gotten more pedantic about undeclared selectors, by
default.
This commit is contained in:
Shane Liesegang 2013-10-08 10:49:00 -04:00
parent 209de7b56d
commit 9e0c07b7ba

View File

@ -783,7 +783,8 @@ static void createMenuBar(void)
// Prior to Snow Leopard, we need to use this oddly-named semi-private API
// to get the application menu working properly.
[NSApp performSelector:@selector(setAppleMenu:) withObject:appMenu];
SEL setAppleMenuSelector = NSSelectorFromString(@"setAppleMenu:");
[NSApp performSelector:setAppleMenuSelector withObject:appMenu];
}
#endif /* _GLFW_USE_MENUBAR */