m_shouldExit = false;
m_processIdleEvents = true;
+#if wxUSE_UIACTIONSIMULATOR
+ m_shouldWaitForEvent = false;
+#endif
+
m_runLoop = CFGetCurrentRunLoop();
CFRunLoopObserverContext ctxt;
int wxCFEventLoop::DoProcessEvents()
{
- return DispatchTimeout( 0 );
+ if ( m_shouldWaitForEvent )
+ {
+ int handled = DispatchTimeout( 1000 );
+ wxASSERT_MSG( handled == 1, "No Event Available");
+ m_shouldWaitForEvent = false;
+ return handled;
+ }
+ else
+ return DispatchTimeout( 0 );
}
bool wxCFEventLoop::Dispatch()