git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74656
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void OSXOnWillTerminate();
private:
+#if wxOSX_USE_IPHONE
bool m_onInitResult;
-
+#endif
public:
#endif
#if wxOSX_USE_COCOA_OR_IPHONE
void wxApp::OSXOnWillFinishLaunching()
{
+#if wxOSX_USE_IPHONE
m_onInitResult = OnInit();
+#endif
}
void wxApp::OSXOnDidFinishLaunching()
bool wxApp::CallOnInit()
{
wxMacAutoreleasePool autoreleasepool;
- m_onInitResult = false;
+ // this will only run one cycle to make sure the OS is ready
[NSApp run];
- return m_onInitResult;
+ return OnInit();
}
void wxApp::DoCleanUp()