• 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
Observing NSArrayController selectionIndex always returns null
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Observing NSArrayController selectionIndex always returns null


  • Subject: Observing NSArrayController selectionIndex always returns null
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 9 Nov 2008 03:59:24 -0500

Hi

I'm trying to observe an NSArrayController's selectionIndex which, according to the documentation here:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSArrayController/selectionIndex

Is an observable property.

Changes do trigger the observer's "observeValueForKeyPath" method but trying to fetch the value using

[inChange objectForKey: NSKeyValueChangeNewKey]

Always returns null. Is this a bug in NSArrayController?


_______________________________________________

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: Observing NSArrayController selectionIndex always returns null
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: IKFilterUIView uiConfiguration values - huh?
  • Next by Date: CoreAudio — AudioUnit and AudioUnitExternalBuffer
  • Previous by thread: Using CIFilter and IKFilterUIView
  • Next by thread: Re: Observing NSArrayController selectionIndex always returns null
  • Index(es):
    • Date
    • Thread