Easily Record Bundles in Cocoa

How can I write packages in Cocoa without much "fuzz" around it? I just want to have a package with Info.plist, a content folder, and this folder should contain a couple of files.

+5
source share
3 answers

If you just want to create directories using Cocoa, take a look at NSFileManager. It has a method:

-createDirectoryAtPath: withIntermediateDirectories: attributes: error:

I also assume you read - The Bundle Programming Guide

This guide will provide you with the complete anatomy of the package.

+4
source

Then just do one thing:

mkdir My.bundle
cd My.bundle
mkdir Contents
cd Contents
touch Info.plist
mkdir Resources
open Info.plist

That should make you start well.

: , Terminal.app.

+1

, , Cocoa, Cocoa Touch.

Create a package from the file shells from the inside, each directory and file will be modeled by the file shell. Then write the external shell of the file to the package URL.

+1
source

All Articles