Re: NSNumberFormatter not working for me ?
Re: NSNumberFormatter not working for me ?
- Subject: Re: NSNumberFormatter not working for me ?
- From: Bill Hernandez <email@hidden>
- Date: Tue, 13 Apr 2010 18:29:46 -0500
On Apr 13, 2010, at 6:01 PM, Kyle Sluder wrote:
> Things like phone numbers, zip codes, and order numbers aren't really
> numbers. They're labels composed of digits. Numbers are typically
> useful for quantities, and that's where number formatters are
> appropriate. Custom formatters that convert from strings to strings
> are the more appropriate choice for telephone numbers and the like.
Kyle,
Even so, I converted the string to an NSNumber and used the formatter against a number, not a string.
I did something similar using the NSDateFormatter to convert dates, and that went very smooth.
Used almost identical format functions except using dates, instead of numbers, and they worked as expected...
Puzzled ?
Bill Hernandez
Plano, Texas
_______________________________________________
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