Change NSTableView alternate row colors

前端 未结 9 1317

I\'m using the \"Alternating Rows\" option in Interface Builder to get alternating row colors on an NSTableView. Is there any way to change the colors of the alternating row

9条回答
  •  天命终不由人
    2020-12-28 17:50

    Found a better way to do it here. That method overrides the highlightSelectionInClipRect: method in an NSTableView subclass so you can use any color you want for the alternating rows. It's not as hackish as using an NSColor category, and it only affects table views you choose.

提交回复
热议问题