That's what I'm doing. But don't understand how to get the 4 bytes I have in NSData into a float variable.

On Mar 3, 2009, at 10:39 AM, Sean McBride wrote:

On 3/2/09 8:32 PM, Jay Kickliter said:

I know I have to play around to make sure the bytes are in the right
order. But what I can't seem to figure out, is how I create a float
from those 4 bytes stored in an instance of NSData. Has anybody run
into this situation?

Not sure if I'm understanding correctly... but just use the 'bytes'
method of NSData to get the data, it returns a void* which in your case
is a float*.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to