• 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: NSData to long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData to long


  • Subject: Re: NSData to long
  • From: David Blanton <email@hidden>
  • Date: Tue, 08 Apr 2003 08:41:45 -0600

On 4/8/03 3:28 AM, "Nathan Day" <email@hidden> wrote:

> Use the method bytes to get a pointer to the data and just cast it. Or
> you could use the method getBytes.
>
> long int theLong;
> [theData getBytes:(void*)&theLongInt length:sizeof(long int)];
>
>
Thank you Nathan and all others who commented. I have implemented the
above.

David Blanton
"Cocoa FNG"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSData to long
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: NSData to long (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: NSScanner baffling behaviour (scanString:intoString: doesn't work!)
  • Next by Date: Re: NSData to long
  • Previous by thread: Re: NSData to long
  • Next by thread: Re: NSData to long
  • Index(es):
    • Date
    • Thread