In my app I have windows that display notifications. I instantiate the controller from a xib and I call makeKeyAndOrderFront
to make the window visible. I also adjust its level to NSScreenSaverWindowLevel
so that it appears in front of others.
The problem is, when I click this window to use it, the main window for my app comes to front. I also have other Windows my app opens, and I noticed that the same behavior happens to them.
According to Apple's documentation on NSWindow, bringing a window to the front should not change the order of any other Windows, thus my confusion.