Cocoa: Fix missing check for selector

Fixes #1457.
This commit is contained in:
Camilla Löwy 2019-03-27 20:04:43 +01:00
parent 1fca33b3c1
commit cad22cb2f6

View File

@ -857,7 +857,9 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
[window->ns.object setDelegate:window->ns.delegate]; [window->ns.object setDelegate:window->ns.delegate];
[window->ns.object setAcceptsMouseMovedEvents:YES]; [window->ns.object setAcceptsMouseMovedEvents:YES];
[window->ns.object setRestorable:NO]; [window->ns.object setRestorable:NO];
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
if ([window->ns.object respondsToSelector:@selector(setTabbingMode:)])
[window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed]; [window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed];
#endif #endif