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:
@@ -348,6 +348,11 @@ protected :
|
|||||||
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER(<NSApplicationDelegate>)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
#endif // __OBJC__
|
#endif // __OBJC__
|
||||||
|
|
||||||
|
@@ -49,26 +49,9 @@ void wxBell()
|
|||||||
|
|
||||||
#if wxUSE_GUI
|
#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
|
@implementation wxNSAppController
|
||||||
|
|
||||||
- (void)applicationWillFinishLaunching:(NSApplication *)application {
|
- (void)applicationWillFinishLaunching:(NSNotification *)application {
|
||||||
wxUnusedVar(application);
|
wxUnusedVar(application);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,7 +113,7 @@ void wxBell()
|
|||||||
return NSTerminateNow;
|
return NSTerminateNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)applicationWillTerminate:(NSApplication *)application {
|
- (void)applicationWillTerminate:(NSNotification *)application {
|
||||||
wxUnusedVar(application);
|
wxUnusedVar(application);
|
||||||
wxCloseEvent event;
|
wxCloseEvent event;
|
||||||
event.SetCanVeto(false);
|
event.SetCanVeto(false);
|
||||||
|
Reference in New Issue
Block a user