]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/dialog.mm
supporting disabled items, closes #11130
[wxWidgets.git] / src / osx / cocoa / dialog.mm
index b195a8633490fa9f3a58818929a6141bb5a4d3e4..4af807536ad6a687ffe1903435d30b885ede199b 100644 (file)
@@ -45,17 +45,19 @@ void wxDialog::DoShowModal()
     }
 */
     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];