Re: data->array (!@%$*)
Re: data->array (!@%$*)
- Subject: Re: data->array (!@%$*)
- From: Ondra Cada <email@hidden>
- Date: Fri, 14 Jun 2002 23:25:19 +0200
On Friday, June 14, 2002, at 08:14 , Mathieu Labrie wrote:
I have a problem with NSData values and NSArray ones. I'm retrieving
data from a socket but then I have to store the different strings
contained in the data into an array to use them later in my application.
I tried to write the data into a file but it's not the same encoding as
NSArray and I simply can't get my string values with the normal
"arrayWithContentsOfFile:" thing..
Any idea to solve this?
P.S Sorry for the spelling or syntax error but english is not my main
language :o)
Same here. Though, I rather can't cope with the semantics. What string
values?
Anyway, presumed you save the array using writeToFile:atomically:, and
read it back via arrayWithContentsOfFile:, you should get pretty the same
thing (save for shared objects, if any, and mutability). If you use NSData,
you should get the very same bytes as those written out.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.