From: Stefan Csomor Date: Mon, 28 Feb 2011 10:10:08 +0000 (+0000) Subject: moving appdelegate declaration to header X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a5d0c88a85808801964dd7251d762cb8466030a9 moving appdelegate declaration to header git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/cocoa/private.h b/include/wx/osx/cocoa/private.h index 139eb57823..3891e81044 100644 --- a/include/wx/osx/cocoa/private.h +++ b/include/wx/osx/cocoa/private.h @@ -348,6 +348,11 @@ protected : - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; @end + @interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER() + { + } + + @end #endif // __OBJC__ diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index aa32945eda..b164a64a73 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -49,26 +49,9 @@ void wxBell() #if wxUSE_GUI -@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER() -{ -} - -- (void)applicationWillFinishLaunching:(NSApplication *)sender; - -- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename; -- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender; -- (BOOL)application:(NSApplication *)sender printFile:(NSString *)filename; -- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event - withReplyEvent:(NSAppleEventDescriptor *)replyEvent; - -- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender; -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender; -- (void)applicationWillTerminate:(NSApplication *)sender; -@end - @implementation wxNSAppController -- (void)applicationWillFinishLaunching:(NSApplication *)application { +- (void)applicationWillFinishLaunching:(NSNotification *)application { wxUnusedVar(application); } @@ -130,7 +113,7 @@ void wxBell() return NSTerminateNow; } -- (void)applicationWillTerminate:(NSApplication *)application { +- (void)applicationWillTerminate:(NSNotification *)application { wxUnusedVar(application); wxCloseEvent event; event.SetCanVeto(false);