Re: Three odd iPhone dev problems
Re: Three odd iPhone dev problems
- Subject: Re: Three odd iPhone dev problems
- From: Jens Alfke <email@hidden>
- Date: Fri, 19 Mar 2010 09:01:28 -0700
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