void wxApp::OnIdle(wxIdleEvent& WXUNUSED(event)) { // If they are pending events, we must process them: pending events are // either events to the threads other than main or events posted with // wxPostEvent() functions #ifndef __WXUNIVERSAL__ #if wxUSE_MENUS if (!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar()) wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar(); #endif #endif CFArrayRemoveAllValues( GetAutoReleaseArray() ); }
void wxApp::MacHandleOneEvent( WXEVENTREF evr ) { EventTargetRef theTarget; theTarget = GetEventDispatcherTarget(); m_macCurrentEvent = evr ; OSStatus status = SendEventToEventTarget((EventRef) evr , theTarget); if (status == eventNotHandledErr) MacHandleUnhandledEvent(evr); wxMacProcessNotifierAndPendingEvents() ; #if wxUSE_THREADS wxMutexGuiLeaveOrEnter(); #endif // wxUSE_THREADS CFArrayRemoveAllValues( GetAutoReleaseArray() ); }
void wxApp::MacAddToAutorelease( void* cfrefobj ) { CFArrayAppendValue( GetAutoReleaseArray(), cfrefobj ); }