I forgot to add:
Using
- (void)windowDidBecomeMain:(NSNotification *)notification
- (void)windowDidResignMain:(NSNotification *)notification
make the panel stay on the screen after the first mouse click, but on the other
hand do not achieve the desired effect, i.e. remove the panel when other
After setting a breakpoint at -[NSWindow orderOut:] (thanks for this and other
hints to Kyle Sluder! - in a post on this list about a year ago) it turns out
that it is exactly my
- (void)windowDidResignKey:(NSNotification *)notification
which takes the panel off the screen. (I wonder why I hadn