When creating a view-based table, it calls the objectValueForTableColumn function instead of viewForTableColumn .
I set the table view to "view based" in my settings. But still I can not get it to call the correct function. I looked at the implementation of the apple example (tableviewplayground), and at some points I even copied the IB insert and functions, still not making progress.
Relevant Code:
// Should run - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { return nil; } // Gets run -(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { return nil; }
Two photos, not sure how useful they are, but still. http://imgur.com/a/ix34Q
source share