KVO Difficulties With Array Controller Selection didChange/willChange
KVO Difficulties With Array Controller Selection didChange/willChange
- Subject: KVO Difficulties With Array Controller Selection didChange/willChange
- From: Colin Cornaby <email@hidden>
- Date: Tue, 6 May 2008 10:29:45 -0700
I have an array controller for a bunch of objects that are called
"client". Clients have a one to many relationship with "records" (the
relationship is accessible with the key "records).
I am observing the array controller based on the key
"selection.records". I'm running into a problem though. The client can
send the didChange/willChangeValueForKey: notifcations, and advertise
when it is about to mutate the records relationship. However, I never
get notified of the change based on the observation of
"selection.records" on the array controller. It seems that the
selection proxy object does not advertise the willChange/didChange
notifications. The only way it seems to be registered of when the
selection's records change is to actually get the real object (by
using selected objects and getting the first object), and then
directly adding an observer.
Is there a way to get this same behavior to work just by observing
based on the selection of the array controller?
Thanks,
Colin
_______________________________________________
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