mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-28 14:37:04 +00:00
add a description to CPSortDescriptor
This commit is contained in:
@@ -129,6 +129,12 @@
|
||||
return [[[self class] alloc] initWithKey:_key ascending:!_ascending selector:_selector];
|
||||
}
|
||||
|
||||
- (CPString)description
|
||||
{
|
||||
return [CPString stringWithFormat:@"(%@, %@, %@)",
|
||||
[self key], [self ascending] ? @"ascending": @"descending", CPStringFromSelector([self selector])];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
var CPSortDescriptorKeyKey = @"CPSortDescriptorKeyKey", // Don't you just love naming schemes ;)
|
||||
|
||||
Reference in New Issue
Block a user