Binding to a specific element in an array
Binding to a specific element in an array
- Subject: Binding to a specific element in an array
- From: Stuart Rogers <email@hidden>
- Date: Sun, 4 Feb 2007 17:12:23 +0000
I'm working on a Core Data application for handling identical files.
I have an entity called FileCollection which contains a to-many
relationship called instances which relates to some instances of
my FileInstance entity. The FileInstance entity contains, amongst
other things, a string attribute called path.
My interface contains a table which lists the FileCollection items
(arrangedObjects of my FileCollection Array Controller). I want
to bind one of the table columns such that it displays the path of
the first FileInstance listed in the FileCollection's instances.
What I'm after, in effect, is a model key path of "instances[0].path"
(i.e. the path attribute of the first object in the instances array).
I realize this isn't the way to do it, so how do I access a specific
item in an array using bindings in Interface Builder?
Stuart
_______________________________________________
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