Re: How does NSWorkspace -isFilePackageAtPath: work?
Re: How does NSWorkspace -isFilePackageAtPath: work?
- Subject: Re: How does NSWorkspace -isFilePackageAtPath: work?
- From: Jens Alfke <email@hidden>
- Date: Mon, 2 Jun 2008 07:46:18 -0700
On 2 Jun '08, at 7:30 AM, Daniel Dalquen wrote:
Does anybody know how the NSWorkspace method -isFilePackageAtPath:
determines whether the file at the path is a bundle or not? Does it
just look at the directory structure only or does it read some
files? Is there a way to find out?
I think it's a combination of (a) does the directory look like a
bundle, i.e. contains a "Contents" directory; and (b) does the
directory name's extension match that of a bundle-based type
registered with Launch Services. (This is why sometimes if you see a
bundle-based document for an app you don't have, it looks like a
folder.)
The LaunchServices documentation might explain in detail.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden