From 750ca509ac9c4bf7e0edfda96af217de9dfff312 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 13 May 2014 20:02:22 +0000 Subject: [PATCH] order than the current OnInit handling for cocoa and carbon we still have to use the native callback for ios git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/app.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osx/carbon/app.cpp b/src/osx/carbon/app.cpp index 1a3d426aaa..d25e238c88 100644 --- a/src/osx/carbon/app.cpp +++ b/src/osx/carbon/app.cpp @@ -420,6 +420,10 @@ void wxApp::OSXOnWillFinishLaunching() void wxApp::OSXOnDidFinishLaunching() { + // on cocoa we cannot do this, as it would arrive "AFTER" an OpenFiles event +#if wxOSX_USE_IPHONE + wxTheApp->OnInit(); +#endif } void wxApp::OSXOnWillTerminate()