Re: Binding to a specific element in an array
Re: Binding to a specific element in an array
- Subject: Re: Binding to a specific element in an array
- From: Stuart Rogers <email@hidden>
- Date: Sun, 4 Feb 2007 18:33:56 +0000
On 4 Feb 2007, at 18:14, I. Savant wrote:
Why not add a transient property to your FileCollection entity
called "firstAvailablePath" or something similar that finds the
path of the first "FileInstance" in your "instances" relationship?
I might have to do that - I was hoping for a solution that didn't
require any extra glue code (because I'm lazy like that!).
Note also that the order in which the instances (as in object
instances of "FileInstance") are fetched is not guaranteed, so
you'll need to add some kind of sorting to make sure you're getting
the instance you actually want.
I guessed someone would point this out! In this particular case it
doesn't matter which instance is returned - my intention is for the
FileCollection to use the parameters of first listed FileInstance
(whichever it is) as a visual identifier for the collection.
Thanks
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