Re: Newbie question on saving data
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