]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/app.cpp
We'll get an unhandled exception if the view is hidden, fortunately, lockFocusIfCanDr...
[wxWidgets.git] / src / osx / carbon / app.cpp
index 3ad2d09ab0d92e83708c77d67a2d4cc722e4bcac..2b8c675d3dd1fcdc2df09c1cfa15a11ea06873b1 100644 (file)
@@ -1119,7 +1119,7 @@ void wxCYield()
 
 // Yield to other processes
 
-bool wxApp::Yield(bool onlyIfNeeded)
+bool wxApp::DoYield(bool onlyIfNeeded, long eventsToProcess)
 {
 #if wxUSE_THREADS
     // Yielding from a non-gui thread needs to bail out, otherwise we end up
@@ -1141,6 +1141,7 @@ bool wxApp::Yield(bool onlyIfNeeded)
     }
 
     m_isInsideYield = true;
+    m_eventsToProcessInsideYield = eventsToProcess;
 
 #if wxUSE_LOG
     // disable log flushing from here because a call to wxYield() shouldn't