Re: Packages vs bundles vs folders etc
Re: Packages vs bundles vs folders etc
- Subject: Re: Packages vs bundles vs folders etc
- From: Peter Ammon <email@hidden>
- Date: Sun, 10 May 2009 19:32:52 -0700
On May 10, 2009, at 6:46 PM, Chris Idou wrote:
Would it be fair to say that if a path is a directory, and if the
kMDItemContentType != public.folder then
NSWorkspace.isFilePackageAtPath would return YES?
No. A non-package directory may not even conform to public.folder.
For example, volume mount points have the type ID public.volume, which
does conform; but frameworks have the type ID public.framework, which
does not conform.
And conversely if a path is not a directory or the
kMDItemContentType == public.folder, then
NSWorkspace.isFilePackageAtPath would return NO?
I'm pretty sure this is true. All packages are directories, and no
package type conforms to public.folder, or ever will.
-Peter
_______________________________________________
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