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

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

  • Follow-Ups:
    • Re: Setting front window when launched from another application
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Text file
  • Next by Date: Re: iPhone: A memory leak I can't explain
  • Previous by thread: Re: Help with crash in -[NSKeyValueNestedProperty matchesWithoutOperatorComponentsKeyPath:]
  • Next by thread: Re: Setting front window when launched from another application
  • Index(es):
    • Date
    • Thread