]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/msgdlg.mm
fixing class
[wxWidgets.git] / src / osx / cocoa / msgdlg.mm
index 82a5c4b907513b36aa504650294840a10f348eaa..8218fc7e872dad4920a334ec3e4efbbdb03c710c 100644 (file)
@@ -21,6 +21,7 @@
 #include "wx/control.h"
 #include "wx/thread.h"
 #include "wx/evtloop.h"
+#include "wx/testing.h"
 #include "wx/osx/private.h"
 
 
@@ -62,7 +63,9 @@ wxMessageDialog::~wxMessageDialog()
 
 int wxMessageDialog::ShowModal()
 {
-    wxCFEventLoopPauseObservers pause;
+    WX_TESTING_SHOW_MODAL_HOOK();
+
+    wxCFEventLoopPauseIdleEvents pause;
     
     int resultbutton = wxID_CANCEL;