Re: [iPhone] NSCoder Question
Re: [iPhone] NSCoder Question
- Subject: Re: [iPhone] NSCoder Question
- From: Development <email@hidden>
- Date: Sat, 9 Jan 2010 17:44:34 -0700
Well it gives me the error on any iPhone including the one that created the file.
But I am using standard keyed archiving. I was under the impression that the data was serialized and transportable.
When I receive the file it's through an NSURL request. So what is handed off from the methods is data. I have also tried dataWithContentsOfURL though. At least if memory serves that is the method name.
On Jan 9, 2010, at 5:31 PM, Mike Abdullah wrote:
>
> On 9 Jan 2010, at 23:10, Development wrote:
>
>> I am trying to transport data after being encoded with the coder. The problem is that when I get it on the other end I'm being told that the data is invalid. Does the coder on the iPhone not work the same as the one in MacOSX?
>>
>> The basic transport I am using is just a post to a url done with the built in handlers. The file 'seems' fine on the server but when downloaded by the same or any other iphone I get the error that it's invalid.
>
> Key point there: "any other iphone." You're almost certainly doing part of the upload or download wrong, not the file itself. Perhaps trying to treat a binary plist as text?
>
_______________________________________________
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