Re: Accessing single element from NSArray of objects
Re: Accessing single element from NSArray of objects
- Subject: Re: Accessing single element from NSArray of objects
- From: Randall Perry <email@hidden>
- Date: Tue, 13 Apr 2004 15:00:25 -0400
> Are you familiar with WORepetition? Alternatively, you may want to
> investigate the use of WODisplayGroup.
>
Yes. I've got a repetition on the same page and it works fine. But the query
returns a single row so it seems like overkill. I just need to access a few
properties of the query.
> I believe your first example above actually returns an array (NSArray)
> of that particular attribute.
I believe this:
> custInfo = ec.objectsWithFetchSpecification(fetchSpec);
Returns an array of objects, no?
> How are you displaying that?
Using CustInfo.cust as a binding to WOString returns every cust row of the
CustInfo array, enclosed in quotes and parentheses like so:
("A1 Motors", "A-1 Answering", "Acme Widgets")
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.