diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 6306e9cc..0b89caa2 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -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 */