So I found out... :) After spending some time trying to figure out
how to (1) obtain the application's documents folder, and (2) use
NSFileNamaner to copy the read-only version into said documents folder.
On Mar 19, 2010, at 11:01 AM, Jens Alfke wrote:
On Mar 18, 2010, at 8:55 PM, William Squires wrote:
How does one save an XML back into its file?
-[NSData writeToFile:atomically:]
I've got a project that loads an xml file via a UITableView's
delegate methods - that all works; I can see all the items in the
NSMutableArray which was loaded from the XML file I created and
dragged into the "Resources" group in Xcode.
Well, you can’t save it back to that file, because your app bundle
is read-only. You’ll have to save it to a file in a writable
directory like Application Support or Documents.
—Jens
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com