Holds attributes necessary to describe how to sort a set of objects. More...
#import <CPSortDescriptor.h>
Class Methods | |
(id) | + sortDescriptorWithKey:ascending: |
(id) | + sortDescriptorWithKey:ascending:selector: |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Holds attributes necessary to describe how to sort a set of objects.
A CPSortDescriptor holds the attributes necessary to describe how to sort a set of objects. The sort descriptor instance holds a property key path to the sort item of the objects to compare, the method selector to call for sorting and the sort order.
Definition at line 2 of file CPSortDescriptor.h.
|
implementation |
Returns YES
if the sort descriptor's order is ascending.
Definition at line 87 of file CPSortDescriptor.j.
|
implementation |
Compares two objects.
lhsObject | the left hand side object to compare |
rhsObject | the right hand side object to compare |
Definition at line 115 of file CPSortDescriptor.j.
|
implementation |
Returns a human readable string describing the receiver
Reimplemented from CPObject.
Definition at line 129 of file CPSortDescriptor.j.
|
implementation |
Provided by category CPSortDescriptor(CPCoding).
Definition at line 155 of file CPSortDescriptor.j.
|
implementation |
Provided by category CPSortDescriptor(CPCoding).
Definition at line 143 of file CPSortDescriptor.j.
|
implementation |
Initializes the sort descriptor.
aKey | the property key path to sort |
isAscending | the sort order |
Definition at line 52 of file CPSortDescriptor.j.
|
implementation |
Initializes the sort descriptor
aKey | the property key path to sort |
isAscending | the sort order |
aSelector | this method gets called to compare objects. The method will take one argument (the object to compare against itself, and must return a CPComparisonResult. |
Definition at line 69 of file CPSortDescriptor.j.
|
implementation |
Returns the descriptor's property key
Definition at line 95 of file CPSortDescriptor.j.
|
implementation |
Makes a copy of this sort descriptor with a reversed sort order.
Definition at line 124 of file CPSortDescriptor.j.
|
implementation |
Returns the selector of the method to call when comparing objects.
Definition at line 103 of file CPSortDescriptor.j.
|
implementation |
Definition at line 40 of file CPSortDescriptor.j.
|
implementation |
Definition at line 57 of file CPSortDescriptor.j.