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