mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
Bumped deployment requirements for Apple platforms
We require at least Xcode 12.2 and macOS SDK 11 to build. We support deploying to macOS 10.13, iOS 11.0, and tvOS 11.0. This cleans up the code significantly
This commit is contained in:
@@ -146,8 +146,7 @@ void SDL_SYS_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFil
|
||||
if (w) {
|
||||
// [dialog beginWithCompletionHandler:^(NSInteger result) {
|
||||
[dialog beginSheetModalForWindow:w completionHandler:^(NSInteger result) {
|
||||
// NSModalResponseOK for >= 10.13
|
||||
if (result == NSFileHandlingPanelOKButton) {
|
||||
if (result == NSModalResponseOK) {
|
||||
if (dialog_as_open) {
|
||||
NSArray* urls = [dialog_as_open URLs];
|
||||
const char *files[[urls count] + 1];
|
||||
@@ -166,8 +165,7 @@ void SDL_SYS_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFil
|
||||
}
|
||||
}];
|
||||
} else {
|
||||
// NSModalResponseOK for >= 10.10
|
||||
if ([dialog runModal] == NSOKButton) {
|
||||
if ([dialog runModal] == NSModalResponseOK) {
|
||||
if (dialog_as_open) {
|
||||
NSArray* urls = [dialog_as_open URLs];
|
||||
const char *files[[urls count] + 1];
|
||||
|
Reference in New Issue
Block a user