]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/evtloop.mm
better native types for carbon
[wxWidgets.git] / src / cocoa / evtloop.mm
index 7981fd26eee3546be769fcb4a6b2532f75f4b436..de848b00e3954cf57f2cb38ca6c6f1fa38130256 100644 (file)
@@ -163,7 +163,8 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess)
         the main thread waits and then notify the main thread by posting
         an event.
      */
-    ProcessPendingEvents();
+    if (wxTheApp)
+        wxTheApp->ProcessPendingEvents();
 
 #if wxUSE_LOG
     // let the logs be flashed again