Saving data to a file
Saving data to a file
- Subject: Saving data to a file
- From: Ron Phillips <email@hidden>
- Date: Fri, 14 Mar 2003 15:48:00 -0600
I have scoured the cocoa-dev archives, web sites and books and still am
confused on how best to write data to a file from a non-document-based
application. An XML format is fine, human-readable is not required. I
have a collection of arrays, ints, strings, and BOOLs. What
preparation is needed for a property list? Chris Kane indicated that
archiving is not compatible with plists and writeToFile:atomically:.
That's cool, so do I just *somehow* wrap up my high-level object into
an NSData object and do the write? If so, what's the best approach to
do that? Is encoding still needed?
Thanks in advance and best regards,
Ron
_______________________________________________
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.