}
*/
NSWindow* theWindow = GetWXWindow();
-
+
NSModalSession session = [NSApp beginModalSessionForWindow:theWindow];
- int response = 0;
- while (IsModal())
+ while (IsModal())
{
wxMacAutoreleasePool autoreleasepool;
// 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
+
+ // do some idle processing
+ if (wxTheApp)
+ wxTheApp->ProcessIdle();
}
[NSApp endModalSession:session];