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:
David Elliott
2003-10-06 15:14:11 +00:00
parent 70247ce395
commit 2990ec973f

View File

@@ -98,11 +98,12 @@ WX_IMPLEMENT_POSER(wxPoserNSApplication);
[super sendEvent: anEvent]; [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)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{ {
BOOL ret = wxTheApp->GetExitOnFrameDelete(); return NO;
wxLogDebug("applicationShouldTermintaeAfterLastWindowClosed=%d",ret);
return ret;
} }
@end // wxPoserNSApplication @end // wxPoserNSApplication