Joshua
Joshua

Reputation: 15510

Making the Text in a Text Cell change color when the Rows Checkbox has been checked

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

Answers (1)

Peter Hosey
Peter Hosey

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

Related Questions