• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: float from NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: float from NSData
      • From: "Sean McBride" <email@hidden>
References: 
 >float from NSData (From: Jay Kickliter <email@hidden>)
 >Re: float from NSData (From: Graham Cox <email@hidden>)
 >Re: float from NSData (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Code Signing for Dummies
  • Next by Date: Re: EXC_BAD_ACCESS in _class_changeInfo
  • Previous by thread: Re: float from NSData
  • Next by thread: Re: float from NSData
  • Index(es):
    • Date
    • Thread