summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXInit.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2023-10-18 13:42:09 (GMT)
committerKevin Walzer <kw@codebykevin.com>2023-10-18 13:42:09 (GMT)
commitcd5b21bb4589a0bc755e9e51c447551847372181 (patch)
tree6f060b93b190ba8ed967dfdcae097a7d6b65a47d /macosx/tkMacOSXInit.c
parent2922e26deba5e35fba028fa5d14ac91f9843d845 (diff)
downloadtk-cd5b21bb4589a0bc755e9e51c447551847372181.zip
tk-cd5b21bb4589a0bc755e9e51c447551847372181.tar.gz
tk-cd5b21bb4589a0bc755e9e51c447551847372181.tar.bz2
Implement applicationSupportsSecureRestorableState for Sonoma security warning, reported in 10b38a7a7c
Diffstat (limited to 'macosx/tkMacOSXInit.c')
-rw-r--r--macosx/tkMacOSXInit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index d70abc5..d003933 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -132,6 +132,16 @@ static int TkMacOSVersionObjCmd(void *cd, Tcl_Interp *ip,
#undef observe
}
+
+/*
+ * Fix for 10b38a7a7c.
+ */
+
+- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
+{
+ return YES;
+}
+
-(void)applicationWillFinishLaunching:(NSNotification *)aNotification
{
(void)aNotification;