• 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: NSNumber onto a NSData Object ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber onto a NSData Object ?


  • Subject: Re: NSNumber onto a NSData Object ?
  • From: Nathan Day <email@hidden>
  • Date: Sun, 23 Jun 2002 22:39:52 +0930

theData = [[aNumber stringValue] dataUsingEncoding:NSUnicodeStringEncoding];

though since it's just numbers you could probable use NSASCIIStringEncoding instead of NSUnicodeStringEncoding.

On Sunday, June 23, 2002, at 01:25 PM, email@hidden wrote:

Newbie question.


What is the best way to get the string form of an NSNumber onto NSData ?

Thanks
_______________________________________________
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.
_______________________________________________
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: NSNumber onto a NSData Object ?
      • From: Benoit Widemann <email@hidden>
References: 
 >NSNumber onto a NSData Object ? (From: email@hidden)

  • Prev by Date: Re: NSOutlineView recursive calling crashing app
  • Next by Date: Re: Using Darwin headers
  • Previous by thread: NSNumber onto a NSData Object ?
  • Next by thread: Re: NSNumber onto a NSData Object ?
  • Index(es):
    • Date
    • Thread