git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24099 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     [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