wxTheApp->OnInit();
}
+- (void)applicationWillTerminate:(UIApplication *)application {
+ wxCloseEvent event;
+ wxTheApp->OnEndSession(event);
+}
- (void)dealloc {
[super dealloc];
return true;
}
-int wxApp::OnRun()
-{
- wxMacAutoreleasePool pool;
- const char* appname = "app";
- UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" );
- return 1;
-}
-
bool wxApp::DoInitGui()
{
return true;