Manual Archiving of Classes
Manual Archiving of Classes
- Subject: Manual Archiving of Classes
- From: Marc Weil <email@hidden>
- Date: Mon, 16 Jun 2003 09:13:06 -0400
Hello,
I have a question which is probably pretty obvious, but I just can't seem to
figure it out.
I have a class in my program that I would like to save to file. It, and all
of the classes it contains as member variables, conforms to NSCoding. Now,
how do I manually tell my class to save to file, much like NSString's
writeToFile:atomically: and NSData's equivalent? The only ways I see
documented are with using the First Responder's saveAs: method for
document-based applications. However, this particular class is not
document-based at all, but rather more of a core class that helps power the
rest of the classes in the program.
So, does anyone have any ideas on how I can manually write this (and any
other class that conforms to NSCoding) to file without saveAs: ?
Thanks, and as always, any help is appreciated.
- Marc Weil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.