Re: Bring App to Front
Re: Bring App to Front
- Subject: Re: Bring App to Front
- From: Shawn Erickson <email@hidden>
- Date: Thu, 8 Jul 2004 09:50:48 -0700
On Jul 8, 2004, at 8:56 AM, Eric Blanpied wrote:
I need a way for my App to bring itself to the foreground under certain
situations. I had hopes that it might be as simple as
makeKeyAndOrderFront,
but alas, that's not the ticket.
Any advice?
It is bad to have an application pop to the foreground, stealing focus,
without the user requesting it. So only do that is absolutely needed
for some special purpose, etc.
It is far better to post an alert panel, modal sheet, etc. or request
the users attention which will not bring your application to the
foreground but will get your applications icon to bounce in the dock to
let the user know that they should switch over to it because it needs
their attention.
Note NSAlert docs as well as NSApplications's requestUserAttention: and
activateIgnoringOtherApps: methods.
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.