Re: problem with [NSData bytes] on Intel
Re: problem with [NSData bytes] on Intel
- Subject: Re: problem with [NSData bytes] on Intel
- From: Markus Hitter <email@hidden>
- Date: Sat, 4 Feb 2006 09:27:45 +0100
Am 04.02.2006 um 08:18 schrieb john:
I'm having an unusual problem when I gain access to the bytes of an
NSData on an Intel iMac. Everything works fine on PPC and Rosetta,
but the native Intel binary exhibits this problem.
[...]
Am I missing something?
You miss handling the different endianess of both architectures? For
floats/doubles, both processors might even use a different number of
bits for mantissa and exponent.
The usually easiest workaround is to store data in text format. This
is, why plain text formats are so common.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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