- wxCHECK_MSG( m_milli > 0, FALSE, wxT("invalid value for timer timeour") );
- wxCHECK_MSG( m_info.m_task.tmAddr == NULL , FALSE, wxT("attempting to restart a timer") );
-
- m_milli = milliseconds;
- m_info.m_task.tmAddr = NewTimerProc( MacTimerProc ) ;
- m_info.m_task.tmWakeUp = 0 ;
- m_info.m_task.tmReserved = 0 ;
- InsXTime((QElemPtr) &m_info.m_task ) ;
- PrimeTime( (QElemPtr) &m_info.m_task , m_milli ) ;
- return FALSE;
+ wxCHECK_MSG( m_milli > 0, FALSE, wxT("invalid value for timer timeout") );
+ wxCHECK_MSG( m_info->m_task.tmAddr == NULL , FALSE, wxT("attempting to restart a timer") );
+
+ m_info->m_task.tmAddr = NewTimerUPP( MacTimerProc ) ;
+ m_info->m_task.tmWakeUp = 0 ;
+ m_info->m_task.tmReserved = 0 ;
+ m_info->m_task.qType = 0 ;
+ m_info->m_timer = this ;
+ InsXTime((QElemPtr) &m_info->m_task ) ;
+ PrimeTime( (QElemPtr) &m_info->m_task , m_milli ) ;
+ return TRUE;