44 #import <Cocoa/Cocoa.h> 48 #include <QtCore/QElapsedTimer> 51 #include <QApplication> 63 CFAbsoluteTime nexttime = CFAbsoluteTimeGetCurrent();
64 nexttime = nexttime + (double(nextTime)/1000);
65 CFRunLoopTimerSetNextFireDate(timer,nexttime);
71 [NSApplication sharedApplication];
84 CFRunLoopAddSource(CFRunLoopGetMain(),
m_source,kCFRunLoopCommonModes);
91 CFAbsoluteTime fireDate = CFAbsoluteTimeGetCurrent ();
92 CFTimeInterval interval = 30;
95 CFRunLoopAddTimer(CFRunLoopGetMain(),m_timerSource,kCFRunLoopCommonModes);
100 [[NSApplication sharedApplication]
run];
105 [[NSApplication sharedApplication] terminate:nil];
static mach_timebase_info_data_t info
void qtNeedsToProcessEvents()
QCocoaEventLoopIntegration()
CFRunLoopSourceContext m_sourceContext
CFRunLoopTimerContext m_timerContext
void wakeupCallback(void *)
void timerCallback(CFRunLoopTimerRef timer, void *info)
QFuture< T > run(Function function,...)
CFRunLoopSourceRef m_source