• 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: Benoit Widemann <email@hidden>
  • Date: Sun, 23 Jun 2002 15:29:58 +0200

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

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


Some languages use other symbols for digits.

If the user is Julius Caesar, he may have selected the Latine number format (such as MMCMLXVIII) in the system's ad hoc control panelum.

Keeping the unicode form is probably safer.

Benoit Widemann


---------------------------------------------
Home page <http://www.widemann.net>
---------------------------------------------

#
_______________________________________________
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.

References: 
 >Re: NSNumber onto a NSData Object ? (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: Using Darwin headers
  • Next by Date: recovering question
  • Previous by thread: Re: NSNumber onto a NSData Object ?
  • Next by thread: Changing formatter for specific cells in the same table column?
  • Index(es):
    • Date
    • Thread