Re: Status Item problems
Re: Status Item problems
- Subject: Re: Status Item problems
- From: Orr Philip <email@hidden>
- Date: Tue, 15 May 2007 23:22:05 +0100
Okay then, I'll answer my own problem.
Before displaying the window I first need to ensure that my
application is the frontmost. To do this simply send [NSApp
activateIgnoringOtherApps:YES];.
It is also possible to get the current key and main windows if any
using the NSApplication Class and return those back when your window
is removed.
Philip
On 12 May 2007, at 15:12, Orr Philip wrote:
I have a status menu item that displays a NSBorderlessWindowMask
window. When the time comes to display the window I use [flipWindow
makeKeyAndOrderFront:sender]; but this just displays the window on
screen above all other windows but does not make it active or the
main window. I have canBecomeKeyWindow and canBecomeMainWindow
returning true.
Also when I orderOut the window disappears but no windows beneath
it become active. I would like to return the active window back to
that before my app was called, if any.
Thanks
Philip
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden