I have a cell-based tableview and I want to display some sort of tags within this tableview, preferably without having to use a view-based tableview.
Is there an elegant way to achieve something like the example here (HTML), ideally with a background-color as well.
If you want to stick with a cell-based table view, you can subclass
NSCell
and override:The above code generates a cell that vaguely resembles your button (you'll have to tweak fonts, colours, line-styles etc. yourself):
I also adjusted the row height in the table view delegate by providing: