• 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: "Sean McBride" <email@hidden>
  • Date: Tue, 3 Mar 2009 11:55:45 -0500
  • Organization: Rogue Research Inc.

On 3/3/09 11:51 AM, Jay Kickliter said:

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

NDData* data = ...
const float* bytes = [data bytes];
float value = bytes[0];

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


_______________________________________________

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

References: 
 >float from NSData (From: Jay Kickliter <email@hidden>)
 >Re: float from NSData (From: "Sean McBride" <email@hidden>)
 >Re: float from NSData (From: Jay Kickliter <email@hidden>)

  • Prev by Date: Re: Path for writeToFile
  • Next by Date: Re: float from NSData
  • Previous by thread: Re: float from NSData
  • Next by thread: Re: float from NSData
  • Index(es):
    • Date
    • Thread