+ m_modality = wxDIALOG_MODALITY_APP_MODAL;
+
+ Show();
+
+ wxModalEventLoop modalLoop(this);
+ m_eventLoop = &modalLoop;
+
+ wxDialog::OSXBeginModalDialog();
+ modalLoop.Run();
+ wxDialog::OSXEndModalDialog();
+
+ m_eventLoop = NULL;
+
+ return GetReturnCode();
+}