0

When using the default color black for a NSTextfield in a View-based NSOutlineView it gets white when selected. When i set a custom textColor in IB, it will stick with it. Where can i set the second textColor?

user3005567
  • 87
  • 1
  • 11

1 Answers1

0

http://blog.the-skylab.de/2013/03/21/custom-selectionhighlighting-colors-in-a-view-based-nstableview-or-nsoutlineview-badge/

I'm doing it like this. Subclass NSTextfield and overwrite drawRect: and add a backgroundStyle property.

Works most of the time, but better than nothing. BackgroundStyle is not the same as highlight, but near ;)

user3005567
  • 87
  • 1
  • 11