]> git.saurik.com Git - wxWidgets.git/commitdiff
proper app shutdown support for iphone
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 23 Feb 2010 17:32:01 +0000 (17:32 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 23 Feb 2010 17:32:01 +0000 (17:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/iphone/utils.mm

index ae34a8473a79006ffa4922faa7c07b2b12a67e80..66d1970deeab9af25b3184ff5ba3fcf62e27d871 100644 (file)
@@ -61,6 +61,10 @@ void wxBell()
        wxTheApp->OnInit();
 }
 
+- (void)applicationWillTerminate:(UIApplication *)application { 
+    wxCloseEvent event;
+    wxTheApp->OnEndSession(event);
+}
 
 - (void)dealloc {
        [super dealloc];