]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/msgdlg.mm
fixing class
[wxWidgets.git] / src / osx / cocoa / msgdlg.mm
index 73075caaa7d06a9b8b6d0e2b3336a4c90b348158..8218fc7e872dad4920a334ec3e4efbbdb03c710c 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "wx/control.h"
 #include "wx/thread.h"
 
 #include "wx/control.h"
 #include "wx/thread.h"
+#include "wx/evtloop.h"
+#include "wx/testing.h"
 #include "wx/osx/private.h"
 
 
 #include "wx/osx/private.h"
 
 
@@ -61,6 +63,10 @@ wxMessageDialog::~wxMessageDialog()
 
 int wxMessageDialog::ShowModal()
 {
 
 int wxMessageDialog::ShowModal()
 {
+    WX_TESTING_SHOW_MODAL_HOOK();
+
+    wxCFEventLoopPauseIdleEvents pause;
+    
     int resultbutton = wxID_CANCEL;
 
     const long style = GetMessageDialogStyle();
     int resultbutton = wxID_CANCEL;
 
     const long style = GetMessageDialogStyle();