• 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
KVO bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVO bug?


  • Subject: KVO bug?
  • From: Matteo Manferdini <email@hidden>
  • Date: Sat, 3 Jun 2006 20:18:36 +0200

Hi everyone. I'm trying to get arrays for removed and added items in a KVO observed array. But, when I look into the change dictionary (using NSKeyValueChangeOldKey and NSKeyValueChangeNewKeys) i get a NSNull object instead of the arrays.
I noticed in mmalc'c GraphicsBinding sample (on http:// homepage.mac.com/mmalc/CocoaExamples/controllers.html) the following comment:


/*
Should be able to use
NSArray *oldGraphics = [change objectForKey:NSKeyValueChangeOldKey];
 etc. but the dictionary doesn't contain old and new arrays...??
*/

So is this a bug in Cocoa KVO? Do I have to do it manually or there is a way to make it work?
Thank you very much.


---
Matteo Manferdini
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: KVO bug?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Can NSMailDelivery be configured programmatically?
  • Next by Date: Re: why doesn't my scrollview scroll ... solved
  • Previous by thread: Re: Distributing your app for other platforms
  • Next by thread: Re: KVO bug?
  • Index(es):
    • Date
    • Thread