Reputation: 15510
I have a NSOutlineView and I want to make the text for a row change color when the rows check box has been checked.
The Outline View looks like:
_ _________________
|_| |____TEXT CELL____|
_ _________________
|_| |____TEXT CELL____|
_ _________________
|_| |____TEXT CELL____|
(CHECKBOX)
How would I do this.
Upvotes: 0
Views: 482
Reputation: 96333
If you can target 10.6, implement tableView:willDisplayCell:forTableColumn:row:
in your table view's delegate to set the cell's text color based on the value of whatever property that backs the checkbox.
Upvotes: 2