Search code examples
objective-cmacoscocoacustomizationnstextfield

NSTextField - White text on black background, but black cursor


I've setup an NSTextField with text color as white, and the background color as (black despite not rendering the background color, so its transparent). All in Interface Builder.

The problem I am having is the cursor is black, and hardly visible. Does the cursor not represent the text color? Any ideas how I can fix this?

Otherwise, the NSTextField looks like it cannot be edited.


Solution

  • Your best bet is probably to use NSTextView and - (void)setInsertionPointColor:(NSColor *)color.