Re: How to tell if a path is an Application
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