summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2023-10-18 13:42:19 (GMT)
committerKevin Walzer <kw@codebykevin.com>2023-10-18 13:42:19 (GMT)
commitcc28dcc44fa41661d541254a7f9ce5c69db56af1 (patch)
tree070efb33b031e2863a44005c69ab8dfc4df93ef6
parent148803307712d5ba02926c30ab538ff6ed3d5532 (diff)
downloadtk-cc28dcc44fa41661d541254a7f9ce5c69db56af1.zip
tk-cc28dcc44fa41661d541254a7f9ce5c69db56af1.tar.gz
tk-cc28dcc44fa41661d541254a7f9ce5c69db56af1.tar.bz2
Implement applicationSupportsSecureRestorableState for Sonoma security warning, reported in 10b38a7a7c
-rw-r--r--macosx/tkMacOSXInit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index 71d7c33..e6a6835 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -130,6 +130,16 @@ static int TkMacOSXGetAppPathCmd(ClientData cd, Tcl_Interp *ip,
#undef observe
}
+
+/*
+ * Fix for 10b38a7a7c.
+ */
+
+- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
+{
+ return YES;
+}
+
-(void)applicationWillFinishLaunching:(NSNotification *)aNotification
{
(void)aNotification;