Public Member Functions | |
(id) | - initWithKey:ascending: [implementation] |
(id) | - initWithKey:ascending:selector: [implementation] |
(BOOL) | - ascending [implementation] |
(CPString) | - key [implementation] |
(SEL) | - selector [implementation] |
(CPComparisonResult) | - compareObject:withObject: [implementation] |
(id) | - reversedSortDescriptor [implementation] |
Definition at line 51 of file CPSortDescriptor.j.
- (BOOL) ascending | [implementation] |
Returns YES
if the sort descriptor's order is ascending.
Definition at line 95 of file CPSortDescriptor.j.
- (CPComparisonResult) compareObject: | (id) | lhsObject | ||
withObject: | (id) | rhsObject | ||
[implementation] |
Compares two objects.
lhsObject | the left hand side object to compre | |
rhsObject | the right hand side object to compare |
Definition at line 123 of file CPSortDescriptor.j.
- (id) initWithKey: | (CPString) | aKey | ||
ascending: | (BOOL) | isAscending | ||
[implementation] |
Initializes the sort descriptor.
aKey | the property key path to sort | |
isAscending | the sort order |
Definition at line 65 of file CPSortDescriptor.j.
- (id) initWithKey: | (CPString) | aKey | ||
ascending: | (BOOL) | isAscending | ||
selector: | (SEL) | aSelector | ||
[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 77 of file CPSortDescriptor.j.
- (CPString) key | [implementation] |
Returns the descriptor's property key
Definition at line 103 of file CPSortDescriptor.j.
- (id) reversedSortDescriptor | [implementation] |
Makes a copy of this sort descriptor with a reversed sort order.
Definition at line 132 of file CPSortDescriptor.j.
- (SEL) selector | [implementation] |
Returns the selector of the method to call when comparing objects.
Definition at line 111 of file CPSortDescriptor.j.