Tuesday 15 April 2014

objective c - Modify color of NSOutlineView in code -


I have a subclass of NSOutlineView that looks as a cell (I use a TextField). The problem is that I can change the color of the row by changing the TextFieldCell color in the IB, but I can not do it in the code. Can someone help me? Thanks!

After a lot of research, I came to know that the solution is to override > NSOutlineView Method - (zero) HighlightElectInclipsect: (NSRact) theClipRect and create your custom highlight.

No comments:

Post a Comment