• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Three odd iPhone dev problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Three odd iPhone dev problems
      • From: William Squires <email@hidden>
References: 
 >Three odd iPhone dev problems (From: William Squires <email@hidden>)

  • Prev by Date: Re: NSComboBox problem in 10.6.2
  • Next by Date: Re: Lock a file in cocoa
  • Previous by thread: Re: Three odd iPhone dev problems
  • Next by thread: Re: Three odd iPhone dev problems
  • Index(es):
    • Date
    • Thread