From 144479d8e4dd67e3e5eafcfb0e5a0e14f712ca96 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 16 Sep 2023 09:48:52 +0200 Subject: [PATCH] cocoa: squelch secure restorable state warning on macOS 14 --- panda/src/cocoadisplay/cocoaPandaAppDelegate.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/cocoadisplay/cocoaPandaAppDelegate.mm b/panda/src/cocoadisplay/cocoaPandaAppDelegate.mm index f64b2be56a..8662dc89af 100644 --- a/panda/src/cocoadisplay/cocoaPandaAppDelegate.mm +++ b/panda/src/cocoadisplay/cocoaPandaAppDelegate.mm @@ -26,6 +26,11 @@ return self; } +- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app { + // Squelches an annoying warning. + return YES; +} + - (void)applicationDidFinishLaunching:(NSNotification *)notification { // This only seems to work when called here. [NSApp activateIgnoringOtherApps:YES];