Skip to content

Commit 905ab78

Browse files
committed
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
1 parent 9811366 commit 905ab78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appbundler/native/main.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int main(int argc, char *argv[]) {
110110
result = 0;
111111
} @catch (NSException *exception) {
112112
NSAlert *alert = [[NSAlert alloc] init];
113-
[alert setAlertStyle:NSCriticalAlertStyle];
113+
[alert setAlertStyle:NSAlertStyleCritical];
114114
[alert setMessageText:[exception reason]];
115115
[alert runModal];
116116

0 commit comments

Comments
 (0)