From 7de4fe7afad4bb552e61ca1270fabf475b0aa1dc Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Tue, 23 Oct 2012 15:24:10 +0100 Subject: [PATCH] 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`. --- AppKit/CPTableColumn.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTableColumn.j b/AppKit/CPTableColumn.j index 6a1765cad..335da30eb 100644 --- a/AppKit/CPTableColumn.j +++ b/AppKit/CPTableColumn.j @@ -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;