git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60963
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
NSWindow* theWindow = GetWXWindow();
NSModalSession session = [NSApp beginModalSessionForWindow:theWindow];
NSWindow* theWindow = GetWXWindow();
NSModalSession session = [NSApp beginModalSessionForWindow:theWindow];
while (IsModal())
{
wxMacAutoreleasePool autoreleasepool;
while (IsModal())
{
wxMacAutoreleasePool autoreleasepool;
- if ([NSApp runModalSession:session] != NSRunContinuesResponse)
- break;
- // TODO should we do some idle processing ?
+ // we cannot break based on the return value, because nested
+ // alerts might set this to stopped as well, so it would be
+ // unsafe
+ [NSApp runModalSession:session];
+ // TODO Idle
}
[NSApp endModalSession:session];
}
[NSApp endModalSession:session];