• 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: Gaurav Srivastava <email@hidden>
  • Date: Fri, 16 Apr 2010 10:41:33 +0530

So, is there any way to prevent the user interaction with the parent
application and still keep receiving events from child application.

On Thu, Apr 15, 2010 at 11:44 PM, Jens Alfke <email@hidden> wrote:

>
> 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




--
Gaurav Srivastava
Btech CSE
MNNIT,Allahabad
_______________________________________________

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: Eli Bach <email@hidden>
References: 
 >Setting front window when launched from another application (From: Gaurav Srivastava <email@hidden>)
 >Re: Setting front window when launched from another application (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Help with crash in -[NSKeyValueNestedProperty matchesWithoutOperatorComponentsKeyPath:]
  • Next by Date: Re: program termination after releasing self defined NSXMLParser class
  • Previous by thread: Re: Setting front window when launched from another application
  • Next by thread: Re: Setting front window when launched from another application
  • Index(es):
    • Date
    • Thread