Always return NO for applicationShouldTerminateAfterLastWindowClosed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
70247ce395
commit
2990ec973f
@ -98,11 +98,12 @@ WX_IMPLEMENT_POSER(wxPoserNSApplication);
|
||||
[super sendEvent: anEvent];
|
||||
}
|
||||
|
||||
// NOTE: Terminate means that the event loop does NOT return and thus
|
||||
// cleanup code doesn't properly execute. Furthermore, wxWindows has its
|
||||
// own exit on frame delete mechanism.
|
||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
|
||||
{
|
||||
BOOL ret = wxTheApp->GetExitOnFrameDelete();
|
||||
wxLogDebug("applicationShouldTermintaeAfterLastWindowClosed=%d",ret);
|
||||
return ret;
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end // wxPoserNSApplication
|
||||
|
Loading…
Reference in New Issue
Block a user