• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding to a specific element in an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Binding to a specific element in an array
      • From: "I. Savant" <email@hidden>
References: 
 >Binding to a specific element in an array (From: Stuart Rogers <email@hidden>)
 >Re: Binding to a specific element in an array (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Strange window controller behaviour with "move focus to next window..."
  • Next by Date: Re: Binding to a specific element in an array
  • Previous by thread: Re: Binding to a specific element in an array
  • Next by thread: Re: Binding to a specific element in an array
  • Index(es):
    • Date
    • Thread