简体   繁体   中英

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.

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);
    //                                             ^^^^^^^^^^^
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM