From 9e0c07b7bacc7ada50762b672ed130a1a10537c3 Mon Sep 17 00:00:00 2001 From: Shane Liesegang Date: Tue, 8 Oct 2013 10:49:00 -0400 Subject: [PATCH] Fixing Xcode 5 warning Xcode 5 has gotten more pedantic about undeclared selectors, by default. --- src/cocoa_window.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */