• 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: Newbie question on saving data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question on saving data


  • Subject: Re: Newbie question on saving data
  • From: Scott Stevenson <email@hidden>
  • Date: Mon, 8 Nov 2004 16:58:33 -0800


On Nov 8, 2004, at 4:31 PM, Steve Gran wrote:

It works fine and saves and loads the data great.  But...

What I want to have is the data saved in XML or just plain ASCII so that I can import it to Excel and edit the data prior to being reloaded in my app. If this matters, the array "players" contains various NSStrings and some int variables.


You can generate XML data using NSPropertyListSerialization:

NSPropertyListSerialization
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSPropertyListSerialztion.html


Use NSPropertyListXMLFormat_v1_0 as the format.


As far as editing it in Excel, I think that's a more involved issue. As far as I know, Excel won't know how to represent something just because it's XML.



- Scott


-- http://treehouseideas.com/ http://theobroma.treehouseideas.com/ [blog]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie question on saving data (From: Steve Gran <email@hidden>)

  • Prev by Date: Newbie question on saving data
  • Next by Date: Getting the desktop background
  • Previous by thread: Newbie question on saving data
  • Next by thread: Re: Newbie question on saving data
  • Index(es):
    • Date
    • Thread