summaryrefslogtreecommitdiff
path: root/vcl/inc/osx/vclnsapp.h
diff options
context:
space:
mode:
authorPatrick Luby <guibmacdev@gmail.com>2024-09-24 15:50:04 -0400
committerPatrick Luby <guibomacdev@gmail.com>2024-09-24 22:56:10 +0200
commit2fc1034de4fd23d810593533b70ff674b0ccd706 (patch)
treeb2b4aa4599928f2cb7c4687b44b070a242ae448f /vcl/inc/osx/vclnsapp.h
parent3b6dbc60d1344f290367fe9f887855f408700bf5 (diff)
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 <guibomacdev@gmail.com>
Diffstat (limited to 'vcl/inc/osx/vclnsapp.h')
-rw-r--r--vcl/inc/osx/vclnsapp.h3
1 files changed, 2 insertions, 1 deletions
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