• 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: NSKeyedArchiver UTF-8 problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSKeyedArchiver UTF-8 problems


  • Subject: Re: NSKeyedArchiver UTF-8 problems
  • From: Raphael Bartolome <email@hidden>
  • Date: Thu, 6 Oct 2005 11:30:46 +0200

Hi,
thanks,
You have right, the data I write to the filehandle is bigger than the data that I receive.
But why could this happen?


raphael

Am 06.10.2005 um 11:18 schrieb j o a r:


On 6 okt 2005, at 11.09, Raphael Bartolome wrote:


NSData *sendData = [[NSData alloc]initWithBytes:[[data_object transferData]bytes] length:[[data_object transferData]length]];


You're creating a copy of a NSData instance here?


The incomming data will read:
resultDictionary = [NSKeyedUnarchiver unarchiveObjectWithData:data];


Have you verified that the size of your output data matches the size of the input data? Have you made a binary comparison to ensure that you get back what you wrote out?



I have no idea who can I get the NSData into UTF-8


I don't think that you should focus on that error message yet - first validate that your in / out data matches up.


j o a r





_______________________________________________ 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
  • Follow-Ups:
    • Re: NSKeyedArchiver UTF-8 problems
      • From: j o a r <email@hidden>
References: 
 >NSKeyedArchiver UTF-8 problems (From: Raphael Bartolome <email@hidden>)
 >Re: NSKeyedArchiver UTF-8 problems (From: j o a r <email@hidden>)

  • Prev by Date: Re: NSKeyedArchiver UTF-8 problems
  • Next by Date: Re: only defined for abstract class
  • Previous by thread: Re: NSKeyedArchiver UTF-8 problems
  • Next by thread: Re: NSKeyedArchiver UTF-8 problems
  • Index(es):
    • Date
    • Thread