Coloring NSTableView Text per row

Posted by Tristan on Stack Overflow See other posts from Stack Overflow or by Tristan
Published on 2010-05-07T05:17:39Z Indexed on 2010/05/07 10:28 UTC
Read the original article Hit count: 304

I have a NSTableView that is displaying an array of objects I have. For each of these objects (rows) I would like to change the color of the text displayed depending on the results of a function I run on each object;

So for example all the object in the table that exist in another list (or some other requirement) I want to display them in green text, and objects that don't exist display in red.

How would I go about doing this?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c