wiring OnInit on osx to a later point in event processing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-07-24 06:14:48 +00:00
parent d3fa4bc22e
commit b0ae60498d
2 changed files with 10 additions and 2 deletions

View File

@@ -473,6 +473,9 @@ int wxEntryReal(int& argc, wxChar **argv)
wxTRY
{
#if defined(__WXOSX__) && wxOSX_USE_COCOA_OR_IPHONE
// everything done in OnRun using native callbacks
#else
// app initialization
if ( !wxTheApp->CallOnInit() )
{
@@ -488,7 +491,7 @@ int wxEntryReal(int& argc, wxChar **argv)
} callOnExit;
WX_SUPPRESS_UNUSED_WARN(callOnExit);
#endif
// app execution
return wxTheApp->OnRun();
}