Re: float from NSData
Re: float from NSData
- Subject: Re: float from NSData
- From: Michael Ash <email@hidden>
- Date: Tue, 3 Mar 2009 11:00:08 -0500
On Tue, Mar 3, 2009 at 10:43 AM, Sean McBride <email@hidden> wrote:
> On 3/3/09 12:42 PM, Graham Cox said:
>
>>Have a look at NSSwapBigFloatToHost and friends
>
> Interesting. I'd not noticed that function, but I'm a bit suspicious of
> it. It takes a NSSwappedFloat struct, which is a struct with a single
> 'long'. But a float is 32 bit, and a long is either 32 or 64 depending, so...
It's an unsigned int in the 10.5 SDK, which is what you must use if
you're going to be using any NS APIs in 64-bit.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden