• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bring App to Front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Bring App to Front
      • From: Andreas Mayer <email@hidden>
References: 
 >Bring App to Front (From: Eric Blanpied <email@hidden>)

  • Prev by Date: Re: Bring App to Front
  • Next by Date: Re: NSNotification called twice
  • Previous by thread: Re: Bring App to Front
  • Next by thread: Re: Bring App to Front
  • Index(es):
    • Date
    • Thread