Change NSTableView alternate row colors

前端 未结 9 1206

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:44

    There is no settable property for this, however you can respond to the delegate method -tableView:willDisplayCell:forTableColumn:row: and set the cell's background color based on the evenness of the row number.

提交回复
热议问题