there are 3 cell in my table view my table is view base table my requirement is when i select any cell(click on any row) text color and background color of that(selected cell) table view cell change
Asked
Active
Viewed 258 times
1 Answers
0
A naive solution could be using NSTableViewDelegate
declared as tableViewSelectionDidChange:. Inside it use the property selectedRowIndexes, which will provide the currently selected rows. Then customize those cell as you want (changing the background color or whatever else).
NB :: don't forget to clear the cell's which are not in the selectedRowIndexes
, otherwise deselcting won't change their state

Ratul Sharker
- 7,484
- 4
- 35
- 44