• 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
NSArrayController Key-Value Observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController Key-Value Observing


  • Subject: NSArrayController Key-Value Observing
  • From: Paul De Vera <email@hidden>
  • Date: Thu, 10 Jan 2008 18:33:22 -0800

I am trying to track the selections of an NSArrayController. I set up an observer for the selectedObjects property of the NSArrayController but when I get to observeValueForKeyPath and print the description of the (NSDictionary *)change argument, I get null for the old value. I was expecting to get an NSArray. Why am I not getting the proper value?

GDB output:
Printing description of change:
<CFDictionary 0x1497c0 [0xa07311a0]>{type = mutable, count = 2, capacity = 3, pairs = (
0 : <CFString 0xa01c6658 [0xa07311a0]>{contents = "kind"} = <CFNumber 0x10e8e0 [0xa07311a0]>{value = +1, type = kCFNumberSInt32Type}
2 : <CFString 0xa01c6638 [0xa07311a0]>{contents = "old"} = <CFNull 0xa0731020 [0xa07311a0]>
)}


Thanks in advance,
Paul

_______________________________________________

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: NSArrayController Key-Value Observing
      • From: mmalc crawford <email@hidden>
  • Prev by Date: How to know a file is busy(read/write)?
  • Next by Date: Re: Controlling field editor for an outline view
  • Previous by thread: Re: How to know a file is busy(read/write)?
  • Next by thread: Re: NSArrayController Key-Value Observing
  • Index(es):
    • Date
    • Thread