Browse Source

cocoa: squelch secure restorable state warning on macOS 14

rdb 2 years ago
parent
commit
144479d8e4
1 changed files with 5 additions and 0 deletions
  1. 5 0
      panda/src/cocoadisplay/cocoaPandaAppDelegate.mm

+ 5 - 0
panda/src/cocoadisplay/cocoaPandaAppDelegate.mm

@@ -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];