Re: Returning a Related Array of Attributes?
Re: Returning a Related Array of Attributes?
- Subject: Re: Returning a Related Array of Attributes?
- From: Art Isbell <email@hidden>
- Date: Thu, 16 Sep 2004 14:21:11 -1000
On Sep 16, 2004, at 2:01 PM, James Cicenia wrote:
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?
NSArray employeeNames =
(NSArray)company.employees().valueForKey("name");
Aloha,
Art
_______________________________________________
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