setting NSSlider floatvalue from different thread
setting NSSlider floatvalue from different thread
- Subject: setting NSSlider floatvalue from different thread
- From: Karim Morsy <email@hidden>
- Date: Tue, 14 Feb 2006 21:35:17 +0100
Hi,
when playing an audio file I am continuously ramping the output
volume from 0.0 to 1.0 (e.g. within 5 seconds).
the NSSlider which I use for setting the volume manually, should
reflect the constantly changing float values of the output volume
accordingly.
so if I call [slider setFloatValue] on the app's main thread
everytime the output volume changes, the slider stops progressing as
soon as I keep another button pressed. Trying to avoid this behavior,
I call [slider setFloatValue] on that other thread. this works fine,
even if I manually set the sliders value while it is moving. however,
I have read in various documents that one should not manipulate any
GUI elements on a thread other than the main thread. So can anyone
suggest a way how to properly accomplish what I want to do ? any help
would be really appreciated.
many thanks in advance,
Karim
_______________________________________________
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