• 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
LaunchServices API + Cocoa Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LaunchServices API + Cocoa Application


  • Subject: LaunchServices API + Cocoa Application
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 18 Sep 2001 12:33:54 +0200

I'm currently working on the task to launch a Cocoa Application from a CoreFoundation Application and so I'm using the LaunchServices API.

Finding the path of the Application and launching it is easy.

The tricky parts are that I would like to:
- be notified in the CoreFoundation application when the Cocoa Application has finished launching. It seems to be possible when I read the LaunchServices.h file using the asyncRefCon field of the LSLaunchURLSpec structure. But there is no indication on how this feature can be used and if I need to do something special in my Cocoa Application to make it work.
- provide some command-line arguments when launching the Cocoa Application but it does not seem possible to do that using the LaunchService APIs. Is it ?

BTW, is there a way to discuss with the LoginWindow.app application to know if someone is logged (the BSD stuff can surely do this) ?


  • Follow-Ups:
    • Re: LaunchServices API + Cocoa Application
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: Re: cocoa-dev digest, Vol 1 #581 - 19 msgs
  • Next by Date: Re: Another suggestion for the new PB
  • Previous by thread: QuickDraw LockPixels on Mac OS X (was: Saving a series of BitmapReps as Quicktime)
  • Next by thread: Re: LaunchServices API + Cocoa Application
  • Index(es):
    • Date
    • Thread