• 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 changed notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider changed notification


  • Subject: Re: NSSlider changed notification
  • From: Steve Christensen <email@hidden>
  • Date: Wed, 11 Mar 2009 08:26:59 -0700

As previous replies have mentioned, if you're looking for continuous change, you need to make sure that "continuous" is set to YES, either by checking "continuously send action while sliding" in IB or by calling [mySlider setContinuous:YES].

You could keep track of changes to the slider value by either binding the slider's value to a property in your controller (which also means that the slider will stay in synch if the value is changed elsewhere), or adding a method to the controller of the form

- (void)mySliderChanged:(id)sender;

and then connecting the slider's target/action to that method in your controller by dragging a connection between the slider and controller in IB.


On Mar 10, 2009, at 11:03 AM, David Alter wrote:

I'm sure this is something basic that I'm just missing. For some reason I
can not find how to get a notification when my slider changes value. I want
to be able to subscribe to receive a notification if the slider value
changes. Is there a delegate method for this? What is the best way to get
this?


I guess one option would be to use KVO, but I suspect there is
a simpler solution.

_______________________________________________

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


References: 
 >NSSlider changed notification (From: David Alter <email@hidden>)

  • Prev by Date: Re: Background Process?
  • Next by Date: Re: Background Process?
  • Previous by thread: Re: NSSlider changed notification
  • Next by thread: NSMutableDictionary drives me mad.
  • Index(es):
    • Date
    • Thread