diff options
author | Akemi <der.richter@gmx.de> | 2017-08-19 15:19:23 +0200 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-08-26 11:42:50 +0200 |
commit | d355cb618ce8586e75a87918a8b7d16b3a06edef (patch) | |
tree | 2768ccd4425a98c1ba417f93162824bf43a38e4d /osdep/macosx_menubar.m | |
parent | eacd97d536fc056eecb159949384841067c90594 (diff) |
osx: fix build on macOS 10.11 and earlier
98f5579 added a safeguard for the deactivation of the automatic tab bar
but it still needs a compile time guard. add a forward declaration for
the setAllowsAutomaticWindowTabbing method of NSWindow.
Fixes #4783
Diffstat (limited to 'osdep/macosx_menubar.m')
-rw-r--r-- | osdep/macosx_menubar.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/osdep/macosx_menubar.m b/osdep/macosx_menubar.m index b0ace205f3..4e9b1733d6 100644 --- a/osdep/macosx_menubar.m +++ b/osdep/macosx_menubar.m @@ -20,6 +20,7 @@ #import "macosx_menubar_objc.h" #import "osdep/macosx_application_objc.h" +#include "osdep/macosx_compat.h" @implementation MenuBar { @@ -34,8 +35,8 @@ [userDefaults setBool:YES forKey:@"NSDisabledDictationMenuItem"]; [userDefaults setBool:YES forKey:@"NSDisabledCharacterPaletteMenuItem"]; - if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) - NSWindow.allowsAutomaticWindowTabbing = NO; + if ([NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:)]) + [NSWindow setAllowsAutomaticWindowTabbing: NO]; menuTree = @[ @{ |