• 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: Zero-padding an NSNumberFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zero-padding an NSNumberFormatter


  • Subject: Re: Zero-padding an NSNumberFormatter
  • From: John Stiles <email@hidden>
  • Date: Tue, 9 Jan 2007 13:40:49 -0800

I hope you filed a radar. That can't be the expected behavior :)

On Jan 9, 2007, at 12:13 PM, Nick Zitzmann wrote:


On Jan 9, 2007, at 12:50 PM, Keary Suska wrote:

What happens when you use -setPositivePrefix: instead of specifying in the
format?

I already tried that and the negative prefix, and the results were even worse. "-+2++" turned into something like "-,," or something like that.


I ended up working around the problem by formatting the number using +[NSString stringWithFormat:] instead of NSNumberFormatter.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: Zero-padding an NSNumberFormatter (From: Keary Suska <email@hidden>)
 >Re: Zero-padding an NSNumberFormatter (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Kosher use of textView:shouldChangeTextInRange:replacementString?
  • Next by Date: Re: Kosher use of textView:shouldChangeTextInRange:replacementString?
  • Previous by thread: Re: Zero-padding an NSNumberFormatter
  • Next by thread: Re: Zero-padding an NSNumberFormatter
  • Index(es):
    • Date
    • Thread