]> git.saurik.com Git - wxWidgets.git/commitdiff
Always return NO for applicationShouldTerminateAfterLastWindowClosed
authorDavid Elliott <dfe@tgwbd.org>
Mon, 6 Oct 2003 15:14:11 +0000 (15:14 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 6 Oct 2003 15:14:11 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/app.mm

index 4744ac03ecd0b895120be38945b3b38a0b0dad92..4607c1428aa49e6af66675f3842525972ad46f06 100644 (file)
@@ -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