cocoa: squelch secure restorable state warning on macOS 14

This commit is contained in:
rdb 2023-09-16 09:48:52 +02:00
parent 0bc290eb2c
commit 144479d8e4

View File

@ -26,6 +26,11 @@
return self; return self;
} }
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
// Squelches an annoying warning.
return YES;
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification { - (void)applicationDidFinishLaunching:(NSNotification *)notification {
// This only seems to work when called here. // This only seems to work when called here.
[NSApp activateIgnoringOtherApps:YES]; [NSApp activateIgnoringOtherApps:YES];