Re: RAW ROWS solved
Re: RAW ROWS solved
- Subject: Re: RAW ROWS solved
- From: Art Isbell <email@hidden>
- Date: Fri, 25 Apr 2003 11:08:26 -1000
On Friday, April 25, 2003, at 10:29 AM, Jevon Hills wrote:
Is there a way which I can apply a sort to this fetch,
Create an EOFetchSpecification, send it setFetchesRawRows(true),
setSortOrderings(sortOrderings), and possibly other configuration
messages, and send the editing context an
objectsWithFetchSpecification() message with your fetch specification
as its argument.
or can I sort
the resulting dictionary by one of the fields?
The result will actually be an array of dictionaries, not a
dictionary. You should be able to sort it in memory (i.e., after
fetching) using EOSortOrdering.sortedArrayUsingKeyOrderArray(). But
sorting such a huge array in memory will likely use even more memory,
so sorting on the DB prior to fetching may be preferable.
Can I access the data in the dictionaries, or do I have to instantiate
each row as an EO to retrieve the information?
You can access the data in each dictionary as usual by sending the
dictionary an objectForKey() message.
Aloha,
Art
_______________________________________________
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.