Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Working With Fetch Results

After you fetch data into an application, you often need to perform in-memory sorting or filtering of that data. The methods in this section provide support for both of those tasks.

EOQualifier: filteredArrayWithQualifier(NSArrayarray, EOQualifierqualifier)

Use this method to filter an array of enterprise objects based on the criteria specified by qualifier.

EOSortOrdering constructor: (Stringkey, NSSelectorselector)

Use this method to construct a sort ordering to use when sorting enterprise objects in memory. The key parameter specifies the property in the enterprise object on which to perform the sort. The selector parameter specifies the sorting order and is usually one of the static fields in the EOSortOrdering class, such as CompareAscending.

EOSortOrdering: sortedArrayUsingKeyOrderArray(NSArrayarray, NSArraysortOrderings)

Use this method to sort an array of enterprise objects in memory. The array of sortOrderings need contain only one EOSortOrdering object, which you construct with the EOSortOrdering constructor.



< Previous PageNext Page > Hide TOC


Last updated: 2007-07-11




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice