]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/utils.mm
Fixed wxFileSystem::FileNameToURL() regression with UNC paths.
[wxWidgets.git] / src / osx / iphone / utils.mm
index ae34a8473a79006ffa4922faa7c07b2b12a67e80..884a2d16e0e1cb42d3b0ed44dafd8639b0f361d2 100644 (file)
@@ -61,6 +61,10 @@ void wxBell()
        wxTheApp->OnInit();
 }
 
+- (void)applicationWillTerminate:(UIApplication *)application { 
+    wxCloseEvent event;
+    wxTheApp->OnEndSession(event);
+}
 
 - (void)dealloc {
        [super dealloc];
@@ -74,14 +78,6 @@ bool wxApp::CallOnInit()
     return true;
 }
 
-int wxApp::OnRun()
-{
-    wxMacAutoreleasePool pool;
-    const char* appname = "app";
-    UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" );
-    return 1;
-}
-
 bool wxApp::DoInitGui()
 {
     return true;