Re: problem with [NSData bytes] on Intel
Re: problem with [NSData bytes] on Intel
- Subject: Re: problem with [NSData bytes] on Intel
- From: John Stiles <email@hidden>
- Date: Sat, 04 Feb 2006 00:19:25 -0800
Can you post some sample code that exhibits the problem?
john wrote:
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
_______________________________________________
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