moving OnInit to a later stage to avoid Carbon Emulation artifacts by the OS, fixes #11839

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-04-02 12:27:39 +00:00
parent 4cf018e14e
commit 175e9d71cd
2 changed files with 51 additions and 41 deletions

View File

@@ -841,7 +841,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
return true;
}
#if wxOSX_USE_COCOA_OR_CARBON
#if wxOSX_USE_CARBON
bool wxApp::CallOnInit()
{
wxMacAutoreleasePool autoreleasepool;
@@ -866,20 +866,12 @@ bool wxApp::ProcessIdle()
return wxAppBase::ProcessIdle();
}
#if wxOSX_USE_COCOA_OR_CARBON
int wxApp::OnRun()
{
wxMacAutoreleasePool pool;
return wxAppBase::OnRun();
}
#else
// iPhone version in utils.mm
#endif
#if wxOSX_USE_CARBON
bool wxApp::DoInitGui()
{