Fixed: automatic table view sort descriptors didn't work for deeper bindings.

If a table view column showed for example `arrangedObjects.user.name`, it would try to sort arranged objects by `name` instead of `user.name`.
This commit is contained in:
Alexander Ljungberg
2012-10-23 15:24:10 +01:00
parent fb155dec58
commit 7de4fe7afa
+1 -1
View File
@@ -582,7 +582,7 @@ CPTableColumnUserResizingMask = 1 << 1;
return nil;
var keyPath = [_info objectForKey:CPObservedKeyPathKey],
dotIndex = keyPath.lastIndexOf(".");
dotIndex = keyPath.indexOf(".");
if (dotIndex === CPNotFound)
return nil;