From cad22cb2f63af8979900776b3c373a3f54b79977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 27 Mar 2019 20:04:43 +0100 Subject: [PATCH] Cocoa: Fix missing check for selector Fixes #1457. --- src/cocoa_window.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 8cf5ec38..bf6f6f28 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -857,8 +857,10 @@ static GLFWbool createNativeWindow(_GLFWwindow* window, [window->ns.object setDelegate:window->ns.delegate]; [window->ns.object setAcceptsMouseMovedEvents:YES]; [window->ns.object setRestorable:NO]; + #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 - [window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed]; + if ([window->ns.object respondsToSelector:@selector(setTabbingMode:)]) + [window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed]; #endif _glfwPlatformGetWindowSize(window, &window->ns.width, &window->ns.height);