Re: KVO on NSSlider not observing
Re: KVO on NSSlider not observing
- Subject: Re: KVO on NSSlider not observing
- From: Keith Duncan <email@hidden>
- Date: Fri, 12 Dec 2008 13:04:07 +0000
Aaron,
You wouldn't typically observe a view class.
In this case what your problem is that NSSlider doesn't change it's
internal value in a key value observing compliant manner. You should
observe the underlying value that the slider represents in your
controller.
If you're using bindings it will 'just work' otherwise if you're using
action messages in your controller be sure to send the proper KVO
messages when you change the value - these are typically done in the
accessors.
Keith
_______________________________________________
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