Bindings and To-Many Relationship
Bindings and To-Many Relationship
- Subject: Bindings and To-Many Relationship
- From: Milen Dzhumerov <email@hidden>
- Date: Fri, 13 Jun 2008 18:39:20 +0100
Hi all,
I've got a question regarding bindings and to-many relationships. I've
got my own array controller which has a arrangedObjects property. It
is KVO observable as in notifications are sent when objects are
added / removed (and obviously if the actually content array changes).
Now my question is regarding KVO and any paths which go through
arrangedObjects - for example, if some object wants to receive
notifications for arrangedObjects.name, how do I handle this?
Conceptually, whose responsibility is it when someone wants to observe
arrangedObjects.name? Is it the array controller's or is it whoever is
interested? I've seen the GraphicsBindings example where the sample
code subscribes to receive notification for each object's "name" path
rather than observing arrangedObjects.name. I'm a bit puzzled which
route to take since it seems that NSArrayController allows observation
of arrangedObjects.name.
Does anyone know how NSTableColumn handles this?
Thanks,
M
_______________________________________________
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