Skip to content

Commit

Permalink
Fix CPTokenField autocompletion to deal with represented objects
Browse files Browse the repository at this point in the history
  • Loading branch information
lvauvillier committed Nov 15, 2010
1 parent 0f8aa1e commit 8b9a0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppKit/CPTokenField.j
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b9a0ed

Please sign in to comment.