Re: Detecting whether app at path is running?
Re: Detecting whether app at path is running?
- Subject: Re: Detecting whether app at path is running?
- From: Nicholas Riley <email@hidden>
- Date: Sun, 26 May 2002 12:13:29 -0500
- Mail-followup-to: Matt Gemmell <email@hidden>, cocoa-dev <email@hidden>
On Sun, May 26, 2002 at 06:04:49PM +0100, Matt Gemmell wrote:
>
Thanks for the pointer. Would there be anything wrong with using
>
LSCopyKindStringForRef() and just checking to see if the string contains
>
"Application"? I don't need to know what kind of app it is.
The kind string may not contain 'Application'. It could be localized,
or (as is currently true for me) LaunchServices could be confused and
think that all my applications belong to some random application.
If it's a CFM executable then its type will be 'APPL'. Otherwise,
it'll be a bundle, and you can use the CFBundle/NSBundle stuff to find
an executable inside it.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.