Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumberFormatter 10.0+ vs. 10.4+



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >NSNumberFormatter 10.0+ vs. 10.4+ (From: Jamie Phelps <email@hidden>)
 >Re: NSNumberFormatter 10.0+ vs. 10.4+ (From: "Kyle Sluder" <email@hidden>)
 >Re: NSNumberFormatter 10.0+ vs. 10.4+ (From: Jamie Phelps <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.