Re: Reading values from XML file
Re: Reading values from XML file
- Subject: Re: Reading values from XML file
- From: Jerry Krinock <email@hidden>
- Date: Sun, 02 Apr 2006 14:30:46 -0700
- Thread-topic: Reading values from XML file
on 06/04/02 14:05, Lorenzo at email@hidden wrote:
> The problem is that when I reopen my custom file, it
> takes so long time to read the NSMutableArray, get each dictionary,
> transform the NSString to NSRect etc. etc.
> So, is any other faster way to save my objects to my custom file?
I think the normal way to do this is to convert your array to an NSData
using NSPropertyListSerialization. This works, as you say, "pretty fast",
for me. But be careful that all objects, and all child objects within the
array to be serialized are one of the object types supported for
serialization.
_______________________________________________
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