moving OnInit back

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-04-05 12:44:31 +00:00
parent 4ee4c7b948
commit 88695e9ab8
2 changed files with 1 additions and 10 deletions

View File

@@ -841,7 +841,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
return true;
}
#if wxOSX_USE_CARBON
#if wxOSX_USE_COCOA_OR_CARBON
bool wxApp::CallOnInit()
{
wxMacAutoreleasePool autoreleasepool;

View File

@@ -99,7 +99,6 @@ void wxMacWakeUp()
- (void)applicationWillFinishLaunching:(NSApplication *)application {
wxUnusedVar(application);
wxTheApp->OnInit();
}
- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename;
@@ -227,14 +226,6 @@ void wxMacWakeUp()
}
@end
bool wxApp::CallOnInit()
{
if ( sm_isEmbedded )
return OnInit();
return true;
}
bool wxApp::DoInitGui()
{
wxMacAutoreleasePool pool;