git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74592
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#if defined(__WXOSX__) && wxOSX_USE_COCOA_OR_IPHONE
+ // everything done in OnRun using native callbacks
+#else
// app initialization
if ( !wxTheApp->CallOnInit() )
{
// app initialization
if ( !wxTheApp->CallOnInit() )
{
} callOnExit;
WX_SUPPRESS_UNUSED_WARN(callOnExit);
} callOnExit;
WX_SUPPRESS_UNUSED_WARN(callOnExit);
// app execution
return wxTheApp->OnRun();
}
// app execution
return wxTheApp->OnRun();
}
+#if wxOSX_USE_COCOA_OR_IPHONE
void wxApp::OSXOnWillFinishLaunching()
{
void wxApp::OSXOnWillFinishLaunching()
{
}
void wxApp::OSXOnDidFinishLaunching()
{
}
void wxApp::OSXOnDidFinishLaunching()
{
+ wxTheApp->OnLaunched();
}
void wxApp::OSXOnWillTerminate()
}
void wxApp::OSXOnWillTerminate()
wxCloseEvent event;
event.SetCanVeto(false);
wxTheApp->OnEndSession(event);
wxCloseEvent event;
event.SetCanVeto(false);
wxTheApp->OnEndSession(event);
}
bool wxApp::OSXOnShouldTerminate()
}
bool wxApp::OSXOnShouldTerminate()
wxTheApp->OnQueryEndSession(event);
return !event.GetVeto();
}
wxTheApp->OnQueryEndSession(event);
return !event.GetVeto();
}
//----------------------------------------------------------------------
// Macintosh CommandID support - converting between native and wx IDs
//----------------------------------------------------------------------
// Macintosh CommandID support - converting between native and wx IDs