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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to