problem with [NSData bytes] on Intel
problem with [NSData bytes] on Intel
- Subject: problem with [NSData bytes] on Intel
- From: john <email@hidden>
- Date: Sat, 4 Feb 2006 02:18:05 -0500
Hi,
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.
If I create a local variable of type float* and use it to reference
an NSData's bytes via (float*)[NSData bytes], when I loop through
this variable all the values are 0.
However, if I write that same NSData to a text file it contains the
correct information. Further, if I create a new NSData using
dataWithBytes:length: with my local variable (that apparently points
to all 0's) and write that to a text file it is also correct.
Am I missing something?
-- John
_______________________________________________
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