• 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: setting NSSlider floatvalue from different thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting NSSlider floatvalue from different thread


  • Subject: Re: setting NSSlider floatvalue from different thread
  • From: j o a r <email@hidden>
  • Date: Thu, 16 Feb 2006 00:14:53 +0100


On 15 feb 2006, at 13.02, Karim Morsy wrote:

This is the code for the callback functions that gets called repeatedly (about 50 times per second) on a seperate thread (which is not the main thread).
(I am trying to animate a slider according to specific float values, and I want to the slider to keep moving even if another button is pressed, which usually blocks the main thread)

It sounds to me like you're trying to implement a sound meter, and not really a slider control?
If that's the case, you might want to consider implementing your own custom view for this purpose. If you do, you can update it from your background threads (read the documentation on drawing from background threads).


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: setting NSSlider floatvalue from different thread (From: Karim Morsy <email@hidden>)

  • Prev by Date: Re: File System changes notifications
  • Next by Date: Re: File System changes notifications
  • Previous by thread: Re: setting NSSlider floatvalue from different thread
  • Next by thread: [resend] Bindings validation weirdness
  • Index(es):
    • Date
    • Thread