• 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
Bindings and KVO of View objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings and KVO of View objects


  • Subject: Bindings and KVO of View objects
  • From: Stuart Malin <email@hidden>
  • Date: Tue, 19 May 2009 11:18:11 -1000

As my understanding of Bindings is that they implement using KVO and KVC, then is it safe to assume that if an object has a bindable property, then that property should be observable with KVO, yes?

My specific concern is with NSSegmentedControl, which has a bindable property "selectedIndex". I am trying to add an observer for this property (using -addObserver: on an instance). Alas, I am not getting an observer event (i.e, invocation of my -observerForKeyPath:... method) when I change the segmented control in the U/I. So, either I have done something incorrectly in setting up the observer, or this is not an observable property.

In searching the archives, I came across a statement by mmalc that View's don't emit KVO notifications (http://www.cocoabuilder.com/archive/message/cocoa/2007/6/29/185375 ). If this is so, then how can the NSSegmentedControl (which is an NSView) support bindings?


_______________________________________________

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


  • Follow-Ups:
    • Re: Bindings and KVO of View objects
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: iPhone text on UIImage not getting displayed on device.
  • Next by Date: [off topic] Re: [OT] Anyone have the a DIRECT phone number for a real person at Apple Legal???
  • Previous by thread: Re: [OT] Anyone have the a DIRECT phone number for a real person at Apple Legal???
  • Next by thread: Re: Bindings and KVO of View objects
  • Index(es):
    • Date
    • Thread