Skip to content
Permalink
Browse files

macOS: Replace uses of deprecated Cocoa enum names with modern/consis…

…tent equivalents.
  • Loading branch information
slime73 committed Jul 14, 2017
1 parent e0ea4da commit bc3ede1ed0e4b5426a02b01f298fe8cf2dda832d

File 3 of 7 in bc3ede1

@@ -86,11 +86,11 @@ - (void) alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextIn
NSAlert* alert = [[[NSAlert alloc] init] autorelease];

if (messageboxdata->flags & SDL_MESSAGEBOX_ERROR) {
[alert setAlertStyle:NSCriticalAlertStyle];
[alert setAlertStyle:NSAlertStyleCritical];
} else if (messageboxdata->flags & SDL_MESSAGEBOX_WARNING) {
[alert setAlertStyle:NSWarningAlertStyle];
[alert setAlertStyle:NSAlertStyleWarning];
} else {
[alert setAlertStyle:NSInformationalAlertStyle];
[alert setAlertStyle:NSAlertStyleInformational];
}

[alert setMessageText:[NSString stringWithUTF8String:messageboxdata->title]];

0 comments on commit bc3ede1

Please sign in to comment.