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

Re: Getting added object with KVO


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

Okay, I think it doesn't work because I bind to collections.arrangedObjects. But what should I bind to instead, to get the functionality I want?


Hannes Petri email@hidden



On 12 jul 2006, at 00.43, Hannes Petri wrote:

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

_______________________________________________ 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
References: 
 >Getting added object with KVO (From: Hannes Petri <email@hidden>)

  • Prev by Date: Helper tool, root and MoreAuthSample?
  • Next by Date: DNS lookup for SMB
  • Previous by thread: Getting added object with KVO
  • Next by thread: Re: Getting added object with KVO
  • Index(es):
    • Date
    • Thread