• 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
Re: NSSlider and timers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider and timers


  • Subject: Re: NSSlider and timers
  • From: Joseph Kelly <email@hidden>
  • Date: Mon, 14 Jul 2008 16:07:30 -0700

Would it be easy to re-factor your usb stuff to run on a separate thread? In my mind, that's clearly the most robust solution.

Joe K.

On Apr 14, 2006, at 5:50 PM, John Goodman wrote:

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Trouble with performSelector afterDelay
  • Next by Date: Re: Trouble with performSelector afterDelay
  • Previous by thread: NSSearchField and NSTokenFieldCell?
  • Next by thread: Design question
  • Index(es):
    • Date
    • Thread