Up

EOSortOrdering

Authors

Mirko Viviani (mirko.viviani@gmail.com)

Version: 25326

Date: 2007-07-12 08:39:22 +0200 (Don, 12 Jul 2007)

Copyright: (C) 2000-2002,2003,2004,2005 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the EOSortOrdering class
  2. Software documentation for the EONull(EOSortOrderingComparison) category
  3. Software documentation for the NSArray(EOKeyBasedSorting) category
  4. Software documentation for the NSMutableArray(EOKeyBasedSorting) category
  5. Software documentation for the NSObject(EOSortOrderingComparison) category

Software documentation for the EOSortOrdering class

EOSortOrdering : NSObject

Declared in:
EOControl/EOSortOrdering.h
Conforms to:
NSCoding
NSCopying
EOKeyValueArchiving
Description forthcoming.

Instance Variables

Method summary

sortOrderingWithKey: selector: 

+ (EOSortOrdering*) sortOrderingWithKey: (NSString*)key selector: (SEL)selector;
Returns an autoreleased EOSortOrdering initilaized with key and selector. The selector should take an id as an argument and return an NSComparisonResult value. This method calls [EOSortOrdering -initWithKey:selector:] .

initWithKey: selector: 

- (id) initWithKey: (NSString*)key selector: (SEL)selector;
This is a designated initialiser for the class.
Initializes the receiver with a copy of key and the selector. The selector should take an id as an argument and return an NSComparisonResult value.

key 

- (NSString*) key;
Returns the key of the receiver.

selector 

- (SEL) selector;
Returns the selector of the receiver. The selector should take an id as an argument and return an NSComparisonResult value.



Instance Variables for EOSortOrdering Class

_key

@protected NSString* _key;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_selector

@protected SEL _selector;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.




Software documentation for the EONull(EOSortOrderingComparison) category

EONull(EOSortOrderingComparison)

Declared in:
EOControl/EOSortOrdering.h
Description forthcoming.
Method summary

compareAscending: 

- (NSComparisonResult) compareAscending: (id)other;
Implementation of EOCompareAscending for EONull. When compared to another EONull, return NSOrderedSame. Otherwise NSOrderdAscening. This leads to EONulls to be at the begining of arrays sorted with EOCompareAscending.

compareCaseInsensitiveAscending: 

- (NSComparisonResult) compareCaseInsensitiveAscending: (id)other;
Implementation of EOCompareCaseInsensativeAscending for EONull. When compared to another EONull, return NSOrderedSame. Otherwise NSOrderdAscening. This leads to EONulls to be at the begining of arrays sorted with EOCompareCaseInsensitiveAscending.

compareCaseInsensitiveDescending: 

- (NSComparisonResult) compareCaseInsensitiveDescending: (id)other;
Implementation of EOCompareCaseInsensativeDescending for EONull. When compared to another EONull, return NSOrderedSame. Otherwise NSOrderdDescening. This leads to EONulls to be at the end of arrays sorted with EOCompareCaseInsensativeDescending.

compareDescending: 

- (NSComparisonResult) compareDescending: (id)other;
Implementation of EOCompareDescending for EONull. When compared to another EONull, return NSOrderedSame. Otherwise NSOrderdDescening. This leads to EONulls to be at the end of arrays sorted with EOCompareDescending.

Software documentation for the NSArray(EOKeyBasedSorting) category

NSArray(EOKeyBasedSorting)

Declared in:
EOControl/EOSortOrdering.h
Description forthcoming.
Method summary

sortedArrayUsingKeyOrderArray: 

- (NSArray*) sortedArrayUsingKeyOrderArray: (NSArray*)orderArray;
Returns an array contaning the of the objects of the reveiver sorted according to the provided array of EOSortOrderings.

Software documentation for the NSMutableArray(EOKeyBasedSorting) category

NSMutableArray(EOKeyBasedSorting)

Declared in:
EOControl/EOSortOrdering.h
Description forthcoming.
Method summary

sortUsingKeyOrderArray: 

- (void) sortUsingKeyOrderArray: (NSArray*)orderArray;
Sorts the reveiver according to the provided array of EOSortOrderings.

Software documentation for the NSObject(EOSortOrderingComparison) category

NSObject(EOSortOrderingComparison)

Declared in:
EOControl/EOSortOrdering.h
Description forthcoming.
Method summary

compareAscending: 

- (NSComparisonResult) compareAscending: (id)other;
Default implementation of EOCompareAscending. This implementation returns the result of compare:. Concrete classes should either override this method or compare: to return a meaningful NSComparisonResult.

compareCaseInsensitiveAscending: 

- (NSComparisonResult) compareCaseInsensitiveAscending: (id)other;
Default implementation of EOCompareCaseInsensitiveAscending. This implementation returns the result of compare:. Concrete classes should either override this method or compare: to return a meaningful NSComparisonResult.

compareCaseInsensitiveDescending: 

- (NSComparisonResult) compareCaseInsensitiveDescending: (id)other;
Default implementation of EOCompareCaseInsensitiveDescending. This implementation returns the inverted result of compare:. Concrete classes should either override this method or compare: to return a meaningful NSComparisonResult.

compareDescending: 

- (NSComparisonResult) compareDescending: (id)other;
Default implementation of EOCompareDescending. This implementation returns the inverted result of compare:. Concrete classes should either override this method or compare: to return a meaningful NSComparisonResult.


Up