wiring event loop callbacks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-07-27 19:19:39 +00:00
parent 33c07ec774
commit fb5cb86797

View File

@@ -409,6 +409,7 @@ void wxApp::OSXOnWillFinishLaunching()
void wxApp::OSXOnDidFinishLaunching()
{
wxTheApp->OnLaunched();
wxEventLoopBase::SetActive(GetMainLoop());
}
void wxApp::OSXOnWillTerminate()
@@ -417,6 +418,11 @@ void wxApp::OSXOnWillTerminate()
event.SetCanVeto(false);
wxTheApp->OnEndSession(event);
wxGUIEventLoop* mainloop = dynamic_cast<wxGUIEventLoop*>(GetMainLoop());
if ( mainloop )
mainloop->OSXOnWillTerminate();
wxEventLoopBase::SetActive(NULL);
wxTheApp->OnExit();
}