0

When I have an NSWindow with a toolbar and an auxiliary NSPanel, then the main window's toolbar separator becomes black when the panel is made key :

enter image description here enter image description here

You can find an example project here.

Why does this occur? All is fine if I use an NSWindow instead of an NSPanel. I tested it on Yosemite (10.10.5).

  • This occurs because an `NSPanel` can't become the main window, so I ended up with an `NSWindow` that is main but not key, and that combination would make its toolbar separator black. It can be solved by calling `-resignMain` on the main window as its panel becomes key (eg. within `-windowDidResignKey:`). – Bruno Vandekerkhove Jun 19 '16 at 12:19
  • Filed it as a bug (#26898161). (*Edit* : It's been solved in the most recent OS, Sierra). – Bruno Vandekerkhove Jun 24 '16 at 16:06

0 Answers0