Search code examples
cocoabundle

Easily writing Bundles


How can I write bundles in Cocoa without much "fuzz" around it? I just want to have a bundle with an Info.plist, a Contents Folder, and that folder should contain a couple of files.


Solution

  • If you are simply looking to create directories with Cocoa, check out NSFileManager. It has the method:

    -createDirectoryAtPath:withIntermediateDirectories:attributes:error:

    I also assume that you have read - Bundle Programming Guide

    This guide will provide you with the complete anatomy of a bundle.