• 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: KVO on NSSlider not observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >KVO on NSSlider not observing (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: Handle Mouse Event in Background Using Cocoa Framework
  • Next by Date: Change Color Of Appended NSString?
  • Previous by thread: KVO on NSSlider not observing
  • Next by thread: Re: KVO on NSSlider not observing
  • Index(es):
    • Date
    • Thread