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