[英]NSTableColumn identifier is “_NS:9”
I'm trying to implement a NSTableView. 我正在尝试实现NSTableView。 I added some columns from xib, and on some of them i added a identifier.
我从xib添加了一些列,并在其中一些添加了标识符。 But when running the app, on
-(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
all the columns identifier are "_NS:9". 但是在运行应用程序时,在
-(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
所有列标识符均为“ _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);
// ^^^^^^^^^^^
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.