- Inherits from:
- Object
- Package:
- com.apple.client.eocontrol
The com.apple.client.eocontrol EOSortOrdering.ComparisonSupport class provides default implementations of the EOSortOrderingComparison interface.
| Note: This class doesn't exist in the com.apple.yellow.eocontrol package. |
The com.apple.client.eocontrol EOCustomObject uses EOSortOrdering.ComparisonSupport's default implementations. Typically your custom enterprise object classes inherit from EOCustomObject and inherit the default implementations. If your custom enterprise object class doesn't inherit from EOCustomObject, you should implement the EOSortOrderingComparison interface directly.
- Setting up automatic support
- setSupportForClass
- supportForClass
- Comparing two objects
- compareValues
- EOSortOrderingComparison methods
- compareAscending
- compareCaseInsensitiveAscending
- compareCaseInsensitiveDescending
- compareDescending
public static int compareValues(
Object anObject,
Object anotherObject,
NSSelector selector)
public static void setSupportForClass(
EOSortOrdering.ComparisonSupport supportClass,
Class aClass)
public static EOSortOrdering.ComparisonSupport supportForClass(Class aClass)
public int compareAscending(
Object receiver,
Object anObject)
NSComparator.OrderedAscending if anObject is
naturally ordered after receiver, NSComparator.OrderedDescending if
it's naturally ordered before receiver,
and NSComparator.OrderedSame if
they're equivalent for ordering purposes.public int compareCaseInsensitiveAscending(
Object receiver,
Object anObject)
NSComparator.OrderedAscending if anObject is
naturally ordered-ignoring case-after receiver, NSComparator.OrderedDescending if
it's naturally ordered before receiver,
and NSComparator.OrderedSame if
they're equivalent for ordering purposes.public int compareCaseInsensitiveDescending(
Object receiver,
Object anObject)
NSComparator.OrderedAscending if anObject is
naturally ordered-ignoring case-before receiver, NSComparator.OrderedDescending if
it's naturally ordered after receiver,
and NSComparator.OrderedSame if
they're equivalent for ordering purposes.public int compareDescending(
Object anObject,
Object anObject)
NSComparator.OrderedAscending if anObject is
naturally ordered before receiver, NSComparator.OrderedDescending if
it's naturally ordered after receiver,
and NSComparator.OrderedSame if
they're equivalent for ordering purposes.