From 905ab78dc263c0516b3e74520179d03654e33b23 Mon Sep 17 00:00:00 2001 From: Franklin Yu Date: Sat, 14 Mar 2020 17:54:10 -0700 Subject: [PATCH] Replace symbol deprecated since macOS 10.12 The symbol has been deprecated in favor of the enum since macOS Sierra (10.12). See documentation for details: https://developer.apple.com/documentation/appkit/nscriticalalertstyle?language=objc --- appbundler/native/main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appbundler/native/main.m b/appbundler/native/main.m index f576312..c4cdb4e 100644 --- a/appbundler/native/main.m +++ b/appbundler/native/main.m @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) { result = 0; } @catch (NSException *exception) { NSAlert *alert = [[NSAlert alloc] init]; - [alert setAlertStyle:NSCriticalAlertStyle]; + [alert setAlertStyle:NSAlertStyleCritical]; [alert setMessageText:[exception reason]]; [alert runModal];