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

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


  • Follow-Ups:
    • Re: setting NSSlider floatvalue from different thread
      • From: j o a r <email@hidden>
  • Prev by Date: Re: why does this leak?
  • Next by Date: [resend] Bindings validation weirdness
  • Previous by thread: Re: Best way to customize Cocoa
  • Next by thread: Re: setting NSSlider floatvalue from different thread
  • Index(es):
    • Date
    • Thread