NSTableView - NSButtonCell datasource type?
1 answer
NSButtonCell uses integer values as data source (like NSNumbers):
NSMixedState = -1,
NSOffState = 0,
NSOnState = 1
It won't help you with the title, of course you have to set this separately. If you are using bindings, NSButtonCell defines a binding title
that you can bind to an array of strings. Otherwise, you can use the NSTableView delegate method - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
to set the title for each row.
+3
source to share