Re: Setting front window when launched from another application
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