Re: NSNumberFormatter problem with percentage
Re: NSNumberFormatter problem with percentage
- Subject: Re: NSNumberFormatter problem with percentage
- From: Quincey Morris <email@hidden>
- Date: Wed, 19 Nov 2008 09:36:00 -0800
On Nov 19, 2008, at 03:37, Graham Cox wrote:
I'm a bit puzzled by NSNumberFormatter when trying to use it to
display values from 0-1 as 0-100% in a text field.
In IB, I'm simply choosing the 'Percent' preset from the menu, and
using it with floats from 0 to 1, but the field ends up displaying
everything 100x too big, i.e. input is 0.5, display shows 5000%. The
multiplier is set to 100, as put there by the preset, and that
implies to me that 0.5 x 100 = 50%. So what's the magic incantation
to make this work as expected?
It's a known bug:
http://www.cocoabuilder.com/archive/message/cocoa/2008/7/26/214121
_______________________________________________
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