Re: NSNumber onto a NSData Object ?
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.