• 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: Returning a Related Array of Attributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning a Related Array of Attributes?


  • Subject: Re: Returning a Related Array of Attributes?
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 16 Sep 2004 17:17:24 -0700

company().employees().valueForKey("name")


On Sep 16, 2004, at 5:01 PM, James Cicenia wrote:

Hello -

I am wondering if there is a one line piece of webobjects magic that I am missing.

Something which would return an array of strings from a relationship.

Say I have a company with employee objects. I want a new string array of the
company's employee names.


I have been looping through the relationship
and adding the string to a mutable array and was wondering
if their was a shortcut I have not stumbled upon?

Thanks again,
James Cicenia _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Returning a Related Array of Attributes?
      • From: James Cicenia <email@hidden>
    • Re: Returning a Related Array of Attributes?
      • From: James Cicenia <email@hidden>
    • Re: Returning a Related Array of Attributes?
      • From: Owen McKerrow <email@hidden>
References: 
 >Returning a Related Array of Attributes? (From: James Cicenia <email@hidden>)

  • Prev by Date: Returning a Related Array of Attributes?
  • Next by Date: Re: Returning a Related Array of Attributes?
  • Previous by thread: Returning a Related Array of Attributes?
  • Next by thread: Re: Returning a Related Array of Attributes?
  • Index(es):
    • Date
    • Thread