FROM : Hamish Allan
DATE : Thu Feb 28 23:01:31 2008
On Thu, Feb 28, 2008 at 9:18 PM, Hank Heijink <hank.<email_removed>> wrote:
> That's not my experience. If I just add a timer for the
> NSEventTrackingRunLoopMode, the only time that timer fires is when the
> run loop is in event tracking mode, which is what I would expect. In
> the NSDefaultRunLoopMode, that timer doesn't fire at all. Are you
> doing something somewhere else to make this happen, or am I missing
> something?
You could try kCFRunLoopCommonModes (pre-Leopard) /
NSRunLoopCommonModes (post-Leopard). I believe that
NSDefaultRunLoopMode and NSEventTrackingRunLoopMode are in the default
common modes (along with NSEventTrackingRunLoopMode) but if not, you
can add common modes using CFRunLoopAddCommonMode().
Hamish
DATE : Thu Feb 28 23:01:31 2008
On Thu, Feb 28, 2008 at 9:18 PM, Hank Heijink <hank.<email_removed>> wrote:
> That's not my experience. If I just add a timer for the
> NSEventTrackingRunLoopMode, the only time that timer fires is when the
> run loop is in event tracking mode, which is what I would expect. In
> the NSDefaultRunLoopMode, that timer doesn't fire at all. Are you
> doing something somewhere else to make this happen, or am I missing
> something?
You could try kCFRunLoopCommonModes (pre-Leopard) /
NSRunLoopCommonModes (post-Leopard). I believe that
NSDefaultRunLoopMode and NSEventTrackingRunLoopMode are in the default
common modes (along with NSEventTrackingRunLoopMode) but if not, you
can add common modes using CFRunLoopAddCommonMode().
Hamish
| 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

