• 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: Setting front window when launched from another application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting front window when launched from another application


  • Subject: Re: Setting front window when launched from another application
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 15 Apr 2010 11:14:27 -0700

On Apr 15, 2010, at 10:32 AM, Gaurav Srivastava wrote:

> When user performs certain action, the parent application launches
> another application B. It does so by doing fork().

Whoa — don’t do this. GUI apps should be launched by calling LaunchServices (or NSWorkspace, which is a wrapper around it.)

One of the effects of failure to do this is that the frontmost app doesn’t relinquish its frontmost status, so the new app can’t claim it and become frontmost. There are other issues too.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Setting front window when launched from another application
      • From: Gaurav Srivastava <email@hidden>
References: 
 >Setting front window when launched from another application (From: Gaurav Srivastava <email@hidden>)

  • Prev by Date: Re: iPhone: A memory leak I can't explain
  • Next by Date: Re: Setting a subclass of NSButtonCell in code
  • Previous by thread: Setting front window when launched from another application
  • Next by thread: Re: Setting front window when launched from another application
  • Index(es):
    • Date
    • Thread