Fix CPTokenField autocompletion to deal with represented objects

This commit is contained in:
Luc Vauvillier committed 2010-11-15 15:51:21 +01:00
1 parent 0f8aa1e644
commit 8b9a0edeba
1 file changed
+1 -1
+1 -1
View File
@@ -1076,7 +1076,7 @@ var CPThemeStateAutoCompleting = @"CPThemeStateAutoCompleting",
- (void)tableView:(CPTableView)tableView objectValueForTableColumn:(CPTableColumn)tableColumn row:(int)row
{
return [_cachedCompletions objectAtIndex:row];
return [self tokenField:self displayStringForRepresentedObject:[_cachedCompletions objectAtIndex:row]];
}
- (void)tableViewSelectionDidChange:(CPNotification)notification