• 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: How to tell if a path is an Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell if a path is an Application


  • Subject: Re: How to tell if a path is an Application
  • From: David Reed <email@hidden>
  • Date: Fri, 17 Sep 2004 12:21:41 -0400

Moray:

How can I query if a path is an application?

[code snipped]

this doesn't seem to work for non-Cocoa apps.
How can I also make it work for Carbon apps?

I'm a little unclear on whether you asking for a function you can use from Carbon/non-Objective-C code, or a function that identifies Carbon applications. However, either way, LaunchServices' LSCopyItemInfoForURL function can give you application-type information and should work just fine for what you want. It also allows you to get some other possibly useful flags (package/single file, native/classic, etc).


Hope this helps,
David.

--
David Reed | email@hidden | AIM/iChat: parmadil01

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to tell if a path is an Application (From: MT <email@hidden>)

  • Prev by Date: Re: How to tell if a path is an Application
  • Next by Date: Re: Home and end keys and NSTableView, not handled automatically?
  • Previous by thread: Re: How to tell if a path is an Application
  • Next by thread: NSUIElement and LaunchServices
  • Index(es):
    • Date
    • Thread