moving appdelegate declaration to header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
733fa5907d
commit
a5d0c88a85
@ -348,6 +348,11 @@ protected :
|
||||
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
||||
@end
|
||||
|
||||
@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER(<NSApplicationDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif // __OBJC__
|
||||
|
||||
|
@ -49,26 +49,9 @@ void wxBell()
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
||||
@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER(<NSApplicationDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
- (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);
|
||||
|
Loading…
Reference in New Issue
Block a user