FROM : Nate Weaver
DATE : Thu Feb 28 19:46:20 2008
> the only reason I'm trying to draw on another thread
> is that my drawing is timer-driven, and the timer gets suspended if
> it's on the main thread and the user clicks on a menu or a scrollbar
> or some such thing.
You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer
forMode:NSEventTrackingRunLoopMode] and avoid another thread altogether.
DATE : Thu Feb 28 19:46:20 2008
> the only reason I'm trying to draw on another thread
> is that my drawing is timer-driven, and the timer gets suspended if
> it's on the main thread and the user clicks on a menu or a scrollbar
> or some such thing.
You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer
forMode:NSEventTrackingRunLoopMode] and avoid another thread altogether.
| 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

