EOSortOrdering
Inherits From: NSObject
Declared In: EOSortOrdering.h
Methods: + sortOrderingWithKey:selector: , - initWithKey:selector: , - initWithDictionary: , - initWithString: , - initWithPropertyList: , - key , - selector


Class Description
This class specifies a sort-ordering as used with EOFetchSpecification. It takes a key and a sort selector which is used for comparision.


Symbolic Constants
Synopsis
EOCompareAscending @selector(compareAscending:)
EOCompareDescending @selector(compareDescending:)
EOCompareCaseInsensitiveAscending @selector(compareCaseInsensitiveAscending:)
EOCompareCaseInsensitiveDescending @selector(compareCaseInsensitiveDescending:)


Global Variables
Synopsis
SEL EOCompareAscending ;
SEL EOCompareDescending ;
SEL EOCompareCaseInsensitiveAscending ;
SEL EOCompareCaseInsensitiveDescending ;


Instance Variables
NSString *key;
SEL selector;

keyNo description.
selectorNo description.



Method Types
+ sortOrderingWithKey:selector:
- initWithKey:selector:
- initWithDictionary:
- initWithString:
- initWithPropertyList:
- key
- selector


Class Methods
sortOrderingWithKey:selector:
+ (EOSortOrdering *)sortOrderingWithKey:(NSString *)_key selector:(SEL)_selector
Create a sort-ordering object with the specified key and sort selector


Instance Methods
initWithDictionary:
- (id)initWithDictionary:(NSDictionary *)_dict
Initialize a sort-ordering with information contained in the dictionary. The following keys are recognized: "key" is required and specifies the key to be sorted on, "selector" is optional and specifies the sort selector as a string. The default for "selector" is EOCompareAscending and the following "special" values are recognized: "compareAscending", "compareDescending", "compareCaseInsensitiveAscending", "compareCaseInsensitiveDescending".

initWithKey:selector:
- (id)initWithKey:(NSString *)_key selector:(SEL)_selector
Initialize a sort-ordering object with the specified key and sort selector

initWithPropertyList:
- (id)initWithPropertyList:(id)_plist
This method checks whether the give property list is an NSDictionary or an NSString object and invokes -initWithDictionary: or -initWithString: in turn.

initWithString:
- (id)initWithString:(NSString *)_string
Initialize/parse a sort-ordering from a string. Usually the string is taken as the key of the ordering and the sorting EOCompareAscending. This can be modified by adding ".reverse" to the key, eg "name.reverse" sorts on the "name" key using EOCompareDescending.

key
- (NSString *)key
Returns the key the ordering sorts with.

selector
- (SEL)selector
Returns the selector the ordering sorts with.


Version 1.1.1.1 Copyright ©2002 by SKYRIX Software AG. All Rights Reserved.