Re: Writing a file type
Re: Writing a file type
- Subject: Re: Writing a file type
- From: John Hörnkvist <email@hidden>
- Date: Mon, 3 Sep 2001 01:25:07 +0200
On Sunday, September 2, 2001, at 10:24 AM, Rob Rix wrote:
Greetings, all.
In a project that I'm working on, I'm going to want to archive data to
a file. So, I've read up on NSArchiver and NSUnarchiver and
NSSerializer, et cetera, and the NSCoding protocol.
Problem is, I want to write to a bundle, not a flat file. The bundle
would contain files for various objects and also resources that they
share. So, it would be analogous to the .rtfd file format that TextEdit
handles.
Look at NSFileWrapper. (It's in the AppKit.) NSDocument supports file
wrappers, with slightly more work than "flat" coders.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com