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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to