Re: NSPanel / NSTextView in Dark Mode

2020-06-05 Thread Gabriel Zachmann via Cocoa-dev
> Make sure the text color is set to a named color such as Label Color instead > of Black. If the text view doesn't contain text in the xib, it might not > remember the color. In the XIB, the NSTextView does not contain any text , just the usual placeholder "lore ipsum". > You might need to s

Re: NSPanel / NSTextView in Dark Mode

2020-06-05 Thread Steve Mills via Cocoa-dev
On Jun 5, 2020, at 13:33:17, Gabriel Zachmann via Cocoa-dev wrote: > > Everything works, *except* in Dark Mode, the text in the NSTextView is not > legible, since it's black text on dark background. > > What should I do to make this panel also Dark Mode "proof" ? Make sure the text color is s

NSPanel / NSTextView in Dark Mode

2020-06-05 Thread Gabriel Zachmann via Cocoa-dev
I have an NSPanel that contains just an NSTextView. The NSTextView is populated at init time using [helpView_ readRTFDFromFile: path]; I think, the NSPanel itself is created by all the XIB magic. Usually , the NSPanel is not visible; but when the user clicks a button, I present it using [he