How do I flag a folder as being a package?

Posted by Pierre Bernard on Stack Overflow See other posts from Stack Overflow or by Pierre Bernard
Published on 2009-11-18T14:29:47Z Indexed on 2010/05/22 7:00 UTC
Read the original article Hit count: 248

Filed under:

I used to think that folders needed to have an extension so that they are recognized as packages by the Finder. That extension would be declared in the owning application's Info.plist.

Obviously there is another, more elegant way, but I can't figure out how it is done.

E.g. the iPhoto Library is being treated as a package by the Finder. Yet it has no extension. mdls reveals that it indeed has "com.apple.package" in the content type tree. The actual content type is dynamically assigned.

How did iPhoto go about to create such a directory?

© Stack Overflow or respective owner

Related posts about cocoa