cocoa wiring

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-07-22 16:18:39 +00:00
parent 038c99477c
commit f9148f9841

View File

@@ -47,7 +47,8 @@ void wxBell()
@implementation wxNSAppController
- (void)applicationWillFinishLaunching:(NSNotification *)application {
- (void)applicationWillFinishLaunching:(NSNotification *)application
{
wxUnusedVar(application);
// we must install our handlers later than setting the app delegate, because otherwise our handlers
@@ -61,6 +62,12 @@ void wxBell()
[appleEventManager setEventHandler:self andSelector:@selector(handleOpenAppEvent:withReplyEvent:)
forEventClass:kCoreEventClass andEventID:kAEOpenApplication];
wxTheApp->OSXOnWillFinishLaunching();
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
wxTheApp->OSXOnDidFinishLaunching();
}
- (void)application:(NSApplication *)sender openFiles:(NSArray *)fileNames