View Full Version : File Packages
I want to be able to store different files within my app's file. I thought the best way to go about it would be to use file packages in the same way as apple pages. However, there seems to be no documentation on the subject. There is a 'package' check box in the target file types inspector but I don't know how I am supposed to use it!
Does anybody know how I can do this?
Sep 1, 2006, 05:20 AM
There is so documentation. Assuming you want 10.3 compatibility (if you only need 10.4 and above there are other methods) you want to use (in NSDocument):
and provide data to save with:
The NSFileWrapper (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSFileWrapper_Class/) class provides most of what you need.
You may also want to read FolderBasedDocuments (http://www.cocoadev.com/index.pl?FolderBasedDocuments), NSFileWrapper (http://www.cocoadev.com/index.pl?NSFileWrapper) on cocoadev.
Thanks so much! :D
I can't believe I didn't see that :rolleyes: .
Thanks again :)