Setting front window when launched from another application
Setting front window when launched from another application
- Subject: Setting front window when launched from another application
- From: Gaurav Srivastava <email@hidden>
- Date: Thu, 15 Apr 2010 23:02:39 +0530
Hi,
I am facing some issues with setting an application as front process when it
is launched from another application. Basically, I have a parent application
A. When user performs certain action, the parent application launches
another application B. It does so by doing fork(). In child process, it
launches the application B by calling execv(). In parent process, it runs an
event loop in which it waits for events received from B. It is basically
done to avoid user interaction with application A. Only when the user is
done with application B, it can interact with A. Now, what happens is that
on launching B from A, B does not come to focus. Even on explicitly setting
B as front process, the issue does not get solved. One more issue I am
facing is that when some modal dialog is up in A and then I launch B, it
goes behind the modal dialog.
Could you suggest some possible solution for this.
Thanks,
Gaurav Srivastava.
_______________________________________________
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