Bindings: Multiple Selections & Custom Classes
Bindings: Multiple Selections & Custom Classes
- Subject: Bindings: Multiple Selections & Custom Classes
- From: Seth Willits <email@hidden>
- Date: Wed, 14 Feb 2007 17:08:26 -0800
Short version:
Where can I find more documentation on how bindings works with
multiple selections and custom objects? If I select multiple items in
a list in a typical master-detail fashion, I can easily change values
for strings and colors and such, but what if one of the properties of
the selected objects is an array of other objects? I want to be able
to add an object to each of the selected items.
Long Version:
As an example, say you have multiple Automobiles objects with a bunch
of properties (name, color, year, whatever...) and each Automobile
has an array of AutoPart objects which are parts of that Automobile.
Naturally AutoPart has a bunch of properties itself such as name,
part number, size, etc.
If you can imagine a master-detail view for this where there is a
Automobiles list and detail view, and in the Automobile's detail view
is a AutoPart list (for the AutoParts in the Automobile) and a
AutoPart detail view, I want to be able to select multiple
Automobiles and click an "Add AutoPart" button which would create two
identical (but separate) AutoPart objects and add them to the
autoparts arrays of the Automobile objects. Just to stress it again,
I don't want the AutoPart object added to each array be the _same_
object, there should be two separate objects, but editable at the
same time (like editing a color property of two selected objects in a
color well).
Can anyone point me in the right direction of how to do this?
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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