Re: NSNumberFormatter 10.0+ vs. 10.4+
Re: NSNumberFormatter 10.0+ vs. 10.4+
- Subject: Re: NSNumberFormatter 10.0+ vs. 10.4+
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 26 Jan 2008 18:25:17 -0500
On 1/26/08, Jamie Phelps <email@hidden> wrote:
> 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:
I was just pointing to a general reference on the changes between 10.0
and 10.4 behavior.
> 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.
See http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/Reference/Reference.html#//apple_ref/doc/uid/20000202-BCICDBCJ
(-[NSNumberFormatter getObjectValue:forString:range:error]). This was
new in 10.4. Perhaps implement the corresponding delegate method and
see what happens?
--Kyle Sluder
_______________________________________________
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