How would I make an NSCell with more than one UI element in it and display it in an NSTableView? For NSCells with a single value I could implement tableView:objectValueForTableColumn:row: but I don’t know how to do this for NSCells with more than one. At the moment I have an NSView in an NSCollectionView and all the elements are bound to an NSArrayController. But I’d rather have an NSTableView or similar.
How would I make an NSCell with more than one UI element in it
Share
You return the primary value in the
tableView:objectValueForTableColumn:row:method, and then set up the cell further intableView:willDisplayCell:forTableColumn:row:.Either that, or you create a custom
NSCellsubclass that can customize itself based on theobjectValuethat you give it.