Alin
Alin

Reputation: 101

NSTableColumn identifier is "_NS:9"

I'm trying to implement a NSTableView. I added some columns from xib, and on some of them i added a identifier. But when running the app, on -(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row all the columns identifier are "_NS:9".

Any help? Thank you.

Upvotes: 1

Views: 142

Answers (1)

Droppy
Droppy

Reputation: 9721

Sounds to me like you aren't accessing the column identifier:

- (id)          tableView:(NSTableView *)tableView
objectValueForTableColumn:(NSTableColumn *)tableColumn
                      row:(NSInteger)row
{
    NSLog(@"Column identifier is '%@'", tableColumn.identifier);
    //                                             ^^^^^^^^^^^
}

Upvotes: 2

Related Questions