LaunchServices API + Cocoa Application
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) ?