How to make round cornered NSTableView rows?
问题 I'd like to make something like this (on the new iTunes): As you can see when the row is selected it's "highlight" state is a round cornered row. How can I achieve something like this? 回答1: You need to subclass NSTableview and override -highlightSelectionInClipRect: method. It can be done like this: Change your tableView's highlighting mode from regular to Source list in Attributes Inspector : And now subclass NSTableView like this: -(void)highlightSelectionInClipRect:(NSRect)theClipRect {