Implicit sort descriptor binding support.

Sort descriptor bindings are now automatically established when a table view has a column value binding (normally to an array controller).
This commit is contained in:
Alexander Ljungberg
2012-10-14 19:39:39 +01:00
parent b629b882b4
commit c2f9b91fe2
+2 -1
View File
@@ -4800,7 +4800,8 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
if ([[self infoForBinding:@"selectionIndexes"] objectForKey:CPObservedObjectKey] !== destination)
[self bind:@"selectionIndexes" toObject:destination withKeyPath:@"selectionIndexes" options:nil];
//[self bind:@"sortDescriptors" toObject:destination withKeyPath:@"sortDescriptors" options:nil];
if ([[self infoForBinding:@"sortDescriptors"] objectForKey:CPObservedObjectKey] !== destination)
[self bind:@"sortDescriptors" toObject:destination withKeyPath:@"sortDescriptors" options:nil];
}
}