Why would makeKeyAndOrderFront not be activating the application?
-
Hi,
I have a dock menu that is supposed to do something and then
activate my application, bringing its window(s) to front. I'm
calling [NSApp arrangeInFront:] and I'm calling [NSWindow
makeKeyAndOrderFront:]
So the application windows are coming to the front layer, but
the actual frontmost window is not activated -- in other words,
it is behaving as if it is behind other windows, with a
translucent title bar and gray title bar controls.
My guess is that this is happening because the application was
not the frontmost, so I'm missing one more call to handle this.
Any suggestions?
Dan
--
Dan Wood
<dwood...>
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/ -
Chris Ruzin Re: Why would makeKeyAndOrderFront not be activating the application? Jan 05 2002, 14:12I used the following line of code to bring my app to the front and
activate it:
[NSApp activateIgnoringOtherApps:YES];
It seems to work for me.
Chris
On Saturday, January 5, 2002, at 04:00 PM, Dan Wood wrote:
> Hi,
>
> I have a dock menu that is supposed to do something and then activate
> my application, bringing its window(s) to front. I'm calling [NSApp
> arrangeInFront:] and I'm calling [NSWindow makeKeyAndOrderFront:]
>
> So the application windows are coming to the front layer, but the
> actual frontmost window is not activated -- in other words, it is
> behaving as if it is behind other windows, with a translucent title bar
> and gray title bar controls.
>
> My guess is that this is happening because the application was not the
> frontmost, so I'm missing one more call to handle this. Any
> suggestions?
>
> Dan
>
>
> --
> Dan Wood
> <dwood...>
> http://www.karelia.com/
> Watson for Mac OS X: http://www.karelia.com/watson/



