using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -152,8 +152,9 @@ public:
|
|||||||
virtual void OSXOnWillTerminate();
|
virtual void OSXOnWillTerminate();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#if wxOSX_USE_IPHONE
|
||||||
bool m_onInitResult;
|
bool m_onInitResult;
|
||||||
|
#endif
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -403,7 +403,9 @@ void wxApp::MacReopenApp()
|
|||||||
#if wxOSX_USE_COCOA_OR_IPHONE
|
#if wxOSX_USE_COCOA_OR_IPHONE
|
||||||
void wxApp::OSXOnWillFinishLaunching()
|
void wxApp::OSXOnWillFinishLaunching()
|
||||||
{
|
{
|
||||||
|
#if wxOSX_USE_IPHONE
|
||||||
m_onInitResult = OnInit();
|
m_onInitResult = OnInit();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxApp::OSXOnDidFinishLaunching()
|
void wxApp::OSXOnDidFinishLaunching()
|
||||||
|
@@ -314,9 +314,9 @@ bool wxApp::DoInitGui()
|
|||||||
bool wxApp::CallOnInit()
|
bool wxApp::CallOnInit()
|
||||||
{
|
{
|
||||||
wxMacAutoreleasePool autoreleasepool;
|
wxMacAutoreleasePool autoreleasepool;
|
||||||
m_onInitResult = false;
|
// this will only run one cycle to make sure the OS is ready
|
||||||
[NSApp run];
|
[NSApp run];
|
||||||
return m_onInitResult;
|
return OnInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxApp::DoCleanUp()
|
void wxApp::DoCleanUp()
|
||||||
|
Reference in New Issue
Block a user