Guard new code for builds with OS X 10.11 SDK and lesser (part 2).

This commit is contained in:
Stephan Witt 2022-01-01 18:47:57 +01:00
parent 718b735dfe
commit df990b1027

View File

@ -42,6 +42,10 @@ void appleCleanupViewMenu() {
bool appleUserTabbingPreferenceAlways() {
#if defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 101200)
return [NSWindow respondsToSelector:@selector(userTabbingPreference)] &&
[NSWindow userTabbingPreference] == NSWindowUserTabbingPreferenceAlways;
#else
return false;
#endif
}