extern wxList wxModalDialogs;
-void wxDialog::ShowWindowModal()
+void wxDialog::DoShowWindowModal()
{
wxTopLevelWindow* parent = static_cast<wxTopLevelWindow*>(wxGetTopLevelParent(GetParent()));
NSWindow* parentWindow = parent->GetWXWindow();
NSWindow* theWindow = GetWXWindow();
-
- wxWindow::Show(true);
[NSApp beginSheet: theWindow
modalForWindow: parentWindow
void wxDialog::EndWindowModal()
{
[NSApp endSheet: GetWXWindow()];
+ [GetWXWindow() orderOut:GetWXWindow()];
}
void wxDialog::DoShowModal()
{
- wxCHECK_RET( !IsModal(), wxT("DoShowModal() called twice") );
-
// If the app hasn't started, flush the event queue
// If we don't do this, the Dock doesn't get the message that
// the app has started so will refuse to activate it.
}
}
- wxModalDialogs.Append(this);
-
SetFocus() ;
/*
WindowGroupRef windowGroup;