wxCHECK_MSG( m_milli > 0, false, wxT("invalid value for timer timeout") );
wxCHECK_MSG( m_info->m_timerRef == NULL, false, wxT("attempting to restart a timer") );
-
+
CFGregorianUnits gumilli ;
memset(&gumilli,0,sizeof(gumilli) );
gumilli.seconds = m_milli / 1000.0;
m_info->m_timer = this;
m_info->m_timerRef = CFRunLoopTimerCreate(
- kCFAllocatorDefault,
+ kCFAllocatorDefault,
CFAbsoluteTimeAddGregorianUnits( CFAbsoluteTimeGetCurrent() , NULL, gumilli ),
IsOneShot() ? 0 : CFTimeInterval( m_milli / 1000.0 ) ,
0, 0, wxProcessTimer, &ctx);
-
+
wxASSERT_MSG( m_info->m_timerRef != NULL, wxT("unable to create timer"));
-
+
CFRunLoopRef runLoop = 0;
#if wxOSX_USE_IPHONE
runLoop = CFRunLoopGetMain();