Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
NSSlider and timers
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
NSSlider and timers
Subject
:
NSSlider and timers
From: John Goodman <
email@hidden
>
Date: Fri, 14 Apr 2006 20:50:37 -0400
I have a timer than needs to fire while the user drags an NSSlider. I have seen solutions that use the NSRunLoop method addTimer:myNSTimer forMode:NSEventTrackingRunLoopMode but my timer is not an NSTimer, it's an MPTimer.
Is there some equivalent solution that will work in my case? I am using the MPTimer API because I need repeatability to a mSec or better, and NSTimer doesn't come close.
What I need to do is both regularly monitor the NSSlider value (I have a custom subclass of NSTimer for other reasons, using a custom NSSliderCell) and regularly write to the USB port (which I'm doing with MPTimer and a MPSetTimerNotify using an MPSemaphore.) It is not critical for me to read the slider completely regularly, but I really need to send data to the USB port as regularly as possible.
This question is going to the cocoa-dev, the mt-smp, and just for the hell of it, the usb list. Thanks to all of you for your help. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Prev by Date:
Re: Progress bar on front NSPanel is grey not blue??
Next by Date:
Re: CoreData faulting - does it rely on #self?
Previous by thread:
Project Open Error
Next by thread:
Parent-Child References
Index(es):
Date
Thread