]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/utils.mm
Make public headers compatible with Objective-C++ with ARC.
[wxWidgets.git] / src / osx / cocoa / utils.mm
index f0d6a398d05e90813c2b1780a8deb08667635073..3e07d7dc2c08642ddc5ac0fc39688ce378687884 100644 (file)
@@ -314,9 +314,9 @@ bool wxApp::DoInitGui()
 bool wxApp::CallOnInit()
 {
     wxMacAutoreleasePool autoreleasepool;
-    // this will only run one cycle to make sure the OS is ready
+    m_onInitResult = false;
     [NSApp run];
-    return OnInit();
+    return m_onInitResult; 
 }
 
 void wxApp::DoCleanUp()