Re: NSNumberFormatter 10.0+ vs. 10.4+
Re: NSNumberFormatter 10.0+ vs. 10.4+
- Subject: Re: NSNumberFormatter 10.0+ vs. 10.4+
- From: Jamie Phelps <email@hidden>
- Date: Sat, 26 Jan 2008 17:02:55 -0600
On Jan 26, 2008, at 4:41 PM, Kyle Sluder wrote:
There's a document about this exact topic:
http://developer.apple.com/documentation/Cocoa/Conceptual/DataFormatting/Articles/dfNumberFormatting10_4.html#/
/apple_ref/doc/uid/TP40002368
Kyle, thanks for that, but it's not exactly what I'm talking about. I
was aware of this issue. Maybe I can explain better. Consider these
steps:
1) Create a NSTableView and apply a NSNumberFormatter to it with 10.4+
specified.
2) Run the application.
3) Enter 3 in the cell and press enter.
When I do this, I get an error that the number does not match the
format specified. I have to return to the cell and enter the value as
3%. If I change the version to 10.0+ and then enter 3, it happily
applies the % to the entered value so that it conforms to the
specified format. What I'd like to know is why this difference happens
and if I use 10.4+, is there a graceful way to handle these errors
other than the sheet that pops up by default? I guess I just don't
understand why 10.4+ won't simply add the % to an entered value but
10.0+ does.
Jamie
_______________________________________________
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