• 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
Getting added object with KVO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting added object with KVO


  • Subject: Getting added object with KVO
  • From: Hannes Petri <email@hidden>
  • Date: Wed, 12 Jul 2006 00:43:10 +0200

Hello!
I'm using KVO to observe an array controller, and when an object is added, a view should be changed.
Now I want a pointer to the object that was added. How should I do?
Apples documentation says that I should get the index of the new object, by querying the changes-dict with the key NSKeyValueChangeIndexesKey, but that returns null.
What am I doing wrong? Is it possible to achieve what I want?



Hannes Petri
email@hidden _______________________________________________
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: Getting added object with KVO
      • From: George Orthwein <email@hidden>
    • Re: Getting added object with KVO
      • From: Hannes Petri <email@hidden>
  • Prev by Date: Re: nil pointers
  • Next by Date: Re: non-ASCII characters in CFString literal [Was: (no subject)]
  • Previous by thread: Re: Will a breakpoint on objc_exception_throw stop on @throw?
  • Next by thread: Re: Getting added object with KVO
  • Index(es):
    • Date
    • Thread