// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
void wxApp::OSXOnDidFinishLaunching()
{
wxTheApp->OnLaunched();
+ wxEventLoopBase::SetActive(GetMainLoop());
}
void wxApp::OSXOnWillTerminate()
event.SetCanVeto(false);
wxTheApp->OnEndSession(event);
+ wxGUIEventLoop* mainloop = dynamic_cast<wxGUIEventLoop*>(GetMainLoop());
+ if ( mainloop )
+ mainloop->OSXOnWillTerminate();
+ wxEventLoopBase::SetActive(NULL);
+
wxTheApp->OnExit();
}