3
如何在NSOutlineView中設置1個特定行的背景顏色?我試過這個沒有運氣:在NSOutlineView中行的背景顏色
func outlineView(_ outlineView: NSOutlineView, rowViewForItem item: Any) -> NSTableRowView? {
let newRow = NSTableRowView()
newRow.backgroundColor = NSColor.red
return newRow
}
爲我工作,thx – JohnnyAW