vcl/inc/osx/vclnsapp.h | 3 ++- vcl/osx/vclnsapp.mm | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
New commits: commit 6d473ec78d180eceeead86bfa2487e8a32d43d65 Author: Patrick Luby <guibmac...@gmail.com> AuthorDate: Tue Sep 24 15:50:04 2024 -0400 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Sep 25 10:00:43 2024 +0200 tdf#163135 eliminate native "secure coding" warning Starting in macOS Sonoma, a warning is printed at launch that complains that -[NSApplicationDelegate applicationSupportsSecureRestorableState:] is not implemented so implement that selector. Change-Id: Idfb62c271af5256270361efdd458f2ef9ea4c40b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173882 Tested-by: Jenkins Reviewed-by: Patrick Luby <guibomac...@gmail.com> (cherry picked from commit 2fc1034de4fd23d810593533b70ff674b0ccd706) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173797 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/inc/osx/vclnsapp.h b/vcl/inc/osx/vclnsapp.h index e3329f554c7e..21a71a01d23e 100644 --- a/vcl/inc/osx/vclnsapp.h +++ b/vcl/inc/osx/vclnsapp.h @@ -34,7 +34,7 @@ class AquaSalFrame; @end // our very own application -@interface VCL_NSApplication : NSApplication +@interface VCL_NSApplication : NSApplication <NSApplicationDelegate> { } -(void)applicationDidFinishLaunching:(NSNotification*)pNotification; @@ -62,6 +62,7 @@ class AquaSalFrame; -(void)applicationWillResignActive: (NSNotification *)pNotification; #endif -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible; +-(BOOL)applicationSupportsSecureRestorableState: (NSApplication *)pApp; -(void)setDockIconClickHandler: (NSObject*)pHandler; @end diff --git a/vcl/osx/vclnsapp.mm b/vcl/osx/vclnsapp.mm index 215d80fb33ed..065e1c95810b 100644 --- a/vcl/osx/vclnsapp.mm +++ b/vcl/osx/vclnsapp.mm @@ -468,6 +468,11 @@ return YES; } +- (BOOL)applicationSupportsSecureRestorableState: (NSApplication *)pApp +{ + return YES; +} + -(void)setDockIconClickHandler: (NSObject*)pHandler { GetSalData()->mpDockIconClickHandler = pHandler;