• 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: Detecting whether app at path is running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting whether app at path is running?


  • Subject: Re: Detecting whether app at path is running?
  • From: Matt Gemmell <email@hidden>
  • Date: Sun, 26 May 2002 18:04:49 +0100

On Saturday, May 25, 2002 11:53:58 pm Brendan Younger wrote:

> > 1. Is NSFileManager's -isExecutableFileAtPath: method sufficient to
> > determine whether the file at that path is an *application*? That
> > is, to determine reliably whether it's a Classic, Carbon or Cocoa
> > app (it doesn't matter which it is; I just need to know that it
> > *is* an application). I suspect that it would also return true for
> > executable files in /usr/bin and so forth, which I wouldn't
> > classify as applications in the traditional sense. If not, is there
> > a way to make this determination is some kind of reasonably
> > accurate way?

> Look into LaunchServices.h. It's in the ApplicationServices
> framework. Check out LSCopyItemInfoForRef().

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.

Best,
-Matt

--
Matt Gemmell
Scotland Software
<http://www.scotlandsoftware.com/>
_______________________________________________
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.

  • Prev by Date: Re: Database applications
  • Next by Date: Re: Detecting whether app at path is running?
  • Previous by thread: Re: Detecting whether app at path is running?
  • Next by thread: Re: Detecting whether app at path is running?
  • Index(es):
    • Date
    • Thread