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 53 of file CPSortDescriptor.j.
| - (BOOL) ascending | [implementation] |
Returns YES if the sort descriptor's order is ascending.
Definition at line 97 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 125 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 67 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 79 of file CPSortDescriptor.j.
| - (CPString) key | [implementation] |
Returns the descriptor's property key
Definition at line 105 of file CPSortDescriptor.j.
| - (id) reversedSortDescriptor | [implementation] |
Makes a copy of this sort descriptor with a reversed sort order.
Definition at line 134 of file CPSortDescriptor.j.
| - (SEL) selector | [implementation] |
Returns the selector of the method to call when comparing objects.
Definition at line 113 of file CPSortDescriptor.j.
1.5.8