reverse set sort descriptors in CPTableView

This commit is contained in:
Klaas Pieter Annema committed 2011-01-18 09:29:28 +01:00
1 parent 818bf475f2
commit 50d36e76ac
1 file changed
+4 -1
+4 -1
View File
@@ -2873,7 +2873,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
/*!
Sets the table view's CPSortDescriptors objects in an array.
@param sortDescriptors an array of sort descritors.
@param sortDescriptors an array of sort descriptors.
*/
- (void)setSortDescriptors:(CPArray)sortDescriptors
{
@@ -2910,6 +2910,9 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
[self setIndicatorImage:image inTableColumn:newColumn];
[self _sendDataSourceSortDescriptorsDidChange:oldSortDescriptors];
var binderClass = [[self class] _binderClassForBinding:@"sortDescriptors"];
[[binderClass getBinding:@"sortDescriptors" forObject:self] reverseSetValueFor:@"sortDescriptors"];
}
/*!