I had a problem resetting colors when choosing NSTextField.
The methods that I use
- (void) setBackgroundColor:(NSColor *)aColor - (void) setTextColor:(NSColor *)aColor
I found that when I clicked on NSTextField and thereby placed the focus in this text box, then I tried to change the color, the colors were not reset until the focus was placed outside this text box.
Color changing otherwise worked when the focus was not on the NSTextField, to start with.
source share