FROM : Eric Long
DATE : Wed Nov 17 20:25:00 2004
> Just testing
> scroll detection, I ran into a caveat with the timer. While the mouse
> remains down on the knob, whether you're still scrolling or not, the timer
> doesn't fire. I figure that's because the main thread is tied up and it's
> not getting air time. So, I'll have to use a secondary thread, like you
> suggested.
Looks like just adding the timer to the currentRunLoop for the
NSEventTrackingRunLoopMode and the NSDefaultRunLoopMode does the trick to
ensure my timer gets called. So, it's much simpler than creating another
run loop.
Eric
DATE : Wed Nov 17 20:25:00 2004
> Just testing
> scroll detection, I ran into a caveat with the timer. While the mouse
> remains down on the knob, whether you're still scrolling or not, the timer
> doesn't fire. I figure that's because the main thread is tied up and it's
> not getting air time. So, I'll have to use a secondary thread, like you
> suggested.
Looks like just adding the timer to the currentRunLoop for the
NSEventTrackingRunLoopMode and the NSDefaultRunLoopMode does the trick to
ensure my timer gets called. So, it's much simpler than creating another
run loop.
Eric
| Related mails | Author | Date |
|---|---|---|
| Eric Long | Nov 16, 20:53 | |
| Guy English | Nov 16, 22:37 | |
| Sherm Pendley | Nov 16, 22:48 | |
| Eric Long | Nov 17, 20:03 | |
| Eric Long | Nov 17, 20:25 |






Cocoa mail archive

