Re: Three odd iPhone dev problems
Re: Three odd iPhone dev problems
- Subject: Re: Three odd iPhone dev problems
- From: William Squires <email@hidden>
- Date: Fri, 19 Mar 2010 19:47:28 -0500
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 (email@hidden)
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:
This email sent to email@hidden