Reputation: 35933
My app generates 3 files every time the user saves a project. I would like to be able to build a bundle at run time, and save all files to that bundle and save it to the app's directory. So if the user wants to move the project to the desktop its just the matter of dragging one bundle (= a directory that looks like a file, like the Mac OS X apps and Pages files)...
I googled around and found nothing.
How do I do that at run time?
thanks.
Upvotes: 2
Views: 1299
Reputation: 16973
Bundles are really just folder hierarchies conforming to a specific structure – see the Bundle Programming Guide. You can use NSFileManager
to create the folders in question, NSPropertyListSerialization
to create the Info.plist
, etc.
Upvotes: 2