Merge pull request #153 from macvim-dev/revert-80-modal-sheet-warnings

Revert "Fix beginModalSheetForWindow warning." to fix #152
This commit is contained in:
Kazuki Sakamoto
2015-11-20 12:37:03 -08:00
-5
View File
@@ -1532,15 +1532,10 @@ 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];
}