wxTRY
{
+#if defined(__WXOSX__) && wxOSX_USE_COCOA_OR_IPHONE
+ // everything done in OnRun using native callbacks
+#else
// app initialization
if ( !wxTheApp->CallOnInit() )
{
} callOnExit;
WX_SUPPRESS_UNUSED_WARN(callOnExit);
-
+#endif
// app execution
return wxTheApp->OnRun();
}
}
}
+#if wxOSX_USE_COCOA_OR_IPHONE
void wxApp::OSXOnWillFinishLaunching()
{
+ wxTheApp->OnInit();
}
void wxApp::OSXOnDidFinishLaunching()
{
-
+ wxTheApp->OnLaunched();
}
void wxApp::OSXOnWillTerminate()
wxCloseEvent event;
event.SetCanVeto(false);
wxTheApp->OnEndSession(event);
+
+ wxTheApp->OnExit();
}
bool wxApp::OSXOnShouldTerminate()
wxTheApp->OnQueryEndSession(event);
return !event.GetVeto();
}
+#endif
//----------------------------------------------------------------------
// Macintosh CommandID support - converting between native and wx IDs