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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user