• 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: Waiting for a program to launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waiting for a program to launch


  • Subject: Re: Waiting for a program to launch
  • From: Randall Meadows <email@hidden>
  • Date: Thu, 19 Feb 2004 12:20:34 -0500

At 11:45 AM -0500 2/19/04, Eric Forget wrote:

> The problem is, I need to somehow block my Cocoa program (I've
spawned off a thread to do this in, actually) until that Classic
program is fully launched and ready to receive Apple Events. What's
the best way to do that?

I've never tried that, but it looks that
NSWorkspaceDidLaunchApplicationNotification from NSWorkspace will do what
you want...

In the interim, I found Nathan Day's NDLaunchServicesObject on Google, which seems to block while Classic launches. Doesn't seem to respect the kLSLaunchDontSwitch flag I'm passing, though, but otherwise it seems to work.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Waiting for a program to launch (From: Eric Forget <email@hidden>)

  • Prev by Date: Re: Waiting for a program to launch
  • Next by Date: Re: [Slightly OT] Shareware donation collection
  • Previous by thread: Re: Waiting for a program to launch
  • Next by thread: Re: Waiting for a program to launch
  • Index(es):
    • Date
    • Thread