FROM : Hank Heijink
DATE : Thu Feb 28 20:49:26 2008
On Feb 28, 2008, at 1:46 PM, Nate Weaver wrote:
>> You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer
>> forMode:NSEventTrackingRunLoopMode] and avoid another thread
>> altogether.
>>
Interesting... I hadn't thought of that. Don't I have to add another
timer to the NSDefaultRunLoopMode though? If I have to chose between
having two timers on the main thread that alternate, or one on a
secondary thread, I think I'll go with the extra thread.
Thanks,
Hank
Hank Heijink
hank.<email_removed>
DATE : Thu Feb 28 20:49:26 2008
On Feb 28, 2008, at 1:46 PM, Nate Weaver wrote:
>> You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer
>> forMode:NSEventTrackingRunLoopMode] and avoid another thread
>> altogether.
>>
Interesting... I hadn't thought of that. Don't I have to add another
timer to the NSDefaultRunLoopMode though? If I have to chose between
having two timers on the main thread that alternate, or one on a
secondary thread, I think I'll go with the extra thread.
Thanks,
Hank
Hank Heijink
hank.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Nate Weaver | Feb 28, 19:46 | |
| Hank Heijink | Feb 28, 20:49 | |
| Nate Weaver | Feb 28, 20:56 | |
| Hank Heijink | Feb 28, 22:18 | |
| Nate Weaver | Feb 28, 22:31 | |
| Hamish Allan | Feb 28, 23:01 | |
| Ron Fleckner | Feb 28, 23:16 | |
| Hank Heijink (Mail… | Feb 29, 20:43 |






Cocoa mail archive

