From c832b78bb6fb9557cb9edb9d36bd4b33fe4fc308 Mon Sep 17 00:00:00 2001 From: Josh Petrie Date: Tue, 6 Oct 2015 21:15:02 -0700 Subject: [PATCH] Fix beginModalSheetForWindow warning. --- src/MacVim/MMVimController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MacVim/MMVimController.m b/src/MacVim/MMVimController.m index 324bab7c85..80ad17752a 100644 --- a/src/MacVim/MMVimController.m +++ b/src/MacVim/MMVimController.m @@ -1523,10 +1523,15 @@ static BOOL isUnsafeMessage(int msgid); } } +#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_10 + [alert beginSheetModalForWindow:[windowController window] + completionHandler: ^(NSModalResponse code) { [self alertDidEnd:alert code:code context:NULL]; }]; +#else [alert beginSheetModalForWindow:[windowController window] modalDelegate:self didEndSelector:@selector(alertDidEnd:code:context:) contextInfo:NULL]; +#endif [alert release]; }