I have a NSTableView in which I want, among other things, I want to display a NSActionCell with an image.
Inside tableView: objectValueForTableColumn:row: I have
When I run this I get "NSImageCell's object value must be an NSImage." and the app hangs. The same thing happens If I use a NSImageCell. If I return just a NSImage the image displays, but then I can't have any actions on it.
Any help would be greatly appreciated.
Inside tableView: objectValueForTableColumn:row: I have
Code:
...
else if ([[tableColumn identifier] isEqualToString:@"icon"]) {
NSActionCell *cell = [[NSActionCell alloc] init];
[cell setImage:[NSImage imageNamed:NSImageNameRevealFreestandingTemplate]];
return cell;
}
...
Any help would be greatly appreciated.