]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/utils.mm
cocoa wiring
[wxWidgets.git] / src / osx / cocoa / utils.mm
index 66bf2fb6828e04ff0a8c0f6d0f8a9199a6507b10..94716dd31e65003a3028d5a8262f81b9e4e863f0 100644 (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