Re: setting NSSlider floatvalue from different thread
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