+ MacTimerInfo * tm = (MacTimerInfo*) t ;
+ wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
+}
+
+static void wxProcessTimer( unsigned long event , void *data )
+{
+ if ( !data )
+ return ;
+
+ wxTimer* timer = (wxTimer*) data ;
+ if ( timer->IsOneShot() )
+ timer->Stop() ;
+
+ timer->Notify();
+
+ if ( timer->m_info.m_task.tmAddr && !timer->IsOneShot() )
+ {
+ PrimeTime( (QElemPtr) &timer->m_info.m_task , timer->GetInterval() ) ;
+ }
+}
+
+void wxTimer::Init()
+{
+ m_info.m_task.tmAddr = NULL ;
+ m_info.m_task.tmWakeUp = 0 ;
+ m_info.m_task.tmReserved = 0 ;
+ m_info.m_task.qType = 0 ;
+ m_info.m_table = wxMacGetNotifierTable() ;
+ m_info.m_timer = this ;
+}
+
+bool wxTimer::IsRunning() const
+{
+ return ( m_info.m_task.qType & kTMTaskActive ) ;