• 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 10:39:17 -0500
  • Organization: Rogue Research Inc.

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                 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

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

  • Prev by Date: Re: Changing NSTableView cell immediately before editing
  • Next by Date: Re: Path for writeToFile
  • Previous by thread: Re: float from NSData
  • Next by thread: Re: float from NSData
  • Index(es):
    • Date
    • Thread