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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]