mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Fix beginModalSheetForWindow warning.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user