diff --git a/src/MacVim/MMAppController.h b/src/MacVim/MMAppController.h index 9786457080..f043fd1e4f 100644 --- a/src/MacVim/MMAppController.h +++ b/src/MacVim/MMAppController.h @@ -73,7 +73,9 @@ - (IBAction)showVimHelp:(id)sender withCmd:(NSString *)cmd; - (IBAction)showVimHelp:(id)sender; - (IBAction)checkForUpdates:(id)sender; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_13 - (IBAction)zoomAll:(id)sender; +#endif - (IBAction)stayInFront:(id)sender; - (IBAction)stayInBack:(id)sender; - (IBAction)stayLevelNormal:(id)sender; diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index dd668ad05d..10bddcba3b 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -1315,11 +1315,19 @@ fsEventCallback(ConstFSEventStreamRef streamRef, #endif } +// Note that the zoomAll method does not appear to be called in modern macOS versions +// as NSApplication just handles it and directly calls each window's zoom:. It's +// difficult to trace through history to see when that happened as it's not really +// documented, so we are leaving this method around in case on older macOS +// versions it's useful. +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_13 - (IBAction)zoomAll:(id)sender { + // TODO ychin: check on 10.13 etc. This was depreacated post 10.14. ASLogDebug(@"Zoom all windows"); [NSApp makeWindowsPerform:@selector(performZoom:) inOrder:YES]; } +#endif - (IBAction)stayInFront:(id)sender {