Re: Accessory NSPanel vanishes on first click after app launches - Follow up

2011-08-02 Thread Peter
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

Accessory NSPanel vanishes on first click after app launches - Follow up

2011-08-02 Thread Peter
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

Accessory NSPanel vanishes on first click after app launches

2011-08-02 Thread Peter
Developing for OS 10.5 and 10.6 I have an application with a main window (no documents window) and a (non-modal) accessory NSPanel I want to show only when the main window is the key window. I want the NSPanel hidden, however, when the preferences or about window comes up or when the app is in t