mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Fixing Xcode 5 warning
Xcode 5 has gotten more pedantic about undeclared selectors, by default.
This commit is contained in:
parent
209de7b56d
commit
9e0c07b7ba
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user