Skip navigation.
 
mlRe: Getting added object with KVO
FROM : Hannes Petri
DATE : Thu Jul 20 15:27:56 2006

I'm sorry, but I really can't get it work.
Could you please paste the code you used? It would really help me a 
lot, as I can't continue my development before I've solved this problem.

Hannes

> First line should be willChange. However, you shouldn't need any 
> willChange/didChange calls at all, unless you are using Manual 
> observing. Automatic should work fine for you. So try removing 
> those lines.
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/
> KeyValueObserving/Concepts/AutoVsManual.html
>
>
> The Manual bindings example may also be helpful ("Manual" here 
> unrelated to Manual KVO), even though it demonstrates 
> bind:toObject:withKeyPath:options rather than 
> addObserver:forKeyPath:options:context:.
> I added a custom view and was able to observe the itemsArray and 
> get a valid change dictionary for the inserted/removed objects.
>
> http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
>
> Hope that helps,
> George
>

Related mailsAuthorDate
mlRe: Getting added object with KVO Hannes Petri Jul 20, 15:27
mlRe: Getting added object with KVO George Orthwein Jul 20, 15:49
mlRe: Getting added object with KVO Hannes Petri Jul 20, 16:12