]> git.saurik.com Git - wxWidgets.git/commitdiff
support for iPhone callbacks
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 23 Jul 2013 20:11:59 +0000 (20:11 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 23 Jul 2013 20:11:59 +0000 (20:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/iphone/utils.mm

index cd21d51fb9244c06fde7791a766f4a76dbf5226f..7f74a116b8fbad74d71192a088caf91d62fa6c9f 100644 (file)
 
 @implementation wxAppDelegate
 
+- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+    wxUnusedVar(application);
+    wxUnusedVar(launchOptions);
+    wxTheApp->OSXOnWillFinishLaunching();
+    return YES;
+}
+
 - (void)applicationDidFinishLaunching:(UIApplication *)application {   
-       wxTheApp->OnInit();
+    wxTheApp->OSXOnDidFinishLaunching();
 }
 
 - (void)applicationWillTerminate:(UIApplication *)application { 
-    wxCloseEvent event;
-    wxTheApp->OnEndSession(event);
+    wxUnusedVar(application);
+    wxTheApp->OSXOnWillTerminate();
 }
 
 - (void)dealloc {