// wxEventLoop implementation
// ============================================================================
+#if 0
+
+// in case we want to integrate this
static NSUInteger CalculateNSEventMaskFromEventCategory(wxEventCategory cat)
{
return mask;
}
+#endif
wxGUIEventLoop::wxGUIEventLoop()
{
return -1;
default:
wxFAIL_MSG("unknown response code");
- return -1;
break;
}
+ return -1;
}
else
{
if ( modalWindow )
{
+ // we must show now, otherwise beginModalSessionForWindow does it but it
+ // also would do a centering of the window before overriding all our position
+ if ( !modalWindow->IsShownOnScreen() )
+ modalWindow->Show();
+
wxNonOwnedWindow* now = dynamic_cast<wxNonOwnedWindow*> (modalWindow);
wxASSERT_MSG( now != NULL, "must pass in a toplevel window for modal event loop" );
nsnow = now ? now->GetWXWindow() : nil;