I have an NSTableView, with two columns. Whenever I add data to the table, both columns display the same data. How do I only update a specific column?
I’m doing Mac Dev btw.
This is the code I’m using:
- (id)tableView:(NSTableView *)streamView objectValueForTableColumn:(NSTableColumn *)messageCol row:(int)row
{
return [[stream respond] objectAtIndex:row];
}
Thanks.
Check which column you’re being asked to fill in in your implementation of
tableView:objectValueForTableColumn:row:. That’s why it passes you the column! Quick example, since you seem to be ignoring the “check what column you’re being asked to fill in” part: