Window not becoming key window when it should after makeKeyAndOrderFront:
Window not becoming key window when it should after makeKeyAndOrderFront:
- Subject: Window not becoming key window when it should after makeKeyAndOrderFront:
- From: Steve Moon <email@hidden>
- Date: Wed, 28 Nov 2001 07:47:55 -0800
Hi
one of my application install itself in the menu bar using
NSStatusBar/NSStatusItem. The application itself is configured with the
flag NSUIElement set to "1". When I click on the icon installed in the
menu bar the app show up a menu, and one of this menu can bring up a
window on screen (most of the time the user close this window : so it's
often off screen).
I show this window by doing a regular : [window
makeKeyAndOrderFront:self]; and this window has the regular attribute
(resizable, miniaturize, ...).
BUT often the window do not show up as the key window (the title bar is
semi transparent), and so make some of the widget in it really
unusable !! Anything wrong I am doing here ?? Any ideas why it's
happening ? I notice that if the app run without the NSUIElement setting
the problem do not happen (apparently since I was not able to reproduce
it).
Steve