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: Unexpected behavior of NSNumberFormatter



Le dimanche 30 dicembre 2001, ` 01:58 , Nick M|ller a icrit :
Just for the one who will fix it, not for complaining:
- Also the rounding seems to be buggy. Rounding-behavior claims to not
limit the number of digits after the decimal point, but it does (to 2
digits).
- NSDecimalNumberHandler does not respond to NSCoding. If you replace
the rounding behavior by your own,
(NSNumberFormatter:setRoundingBehavior) and try to archive the
NSNumberFormatter, you will miss NSCoding.
- I'm also missing some set-functions in the NSDecimalNumberHandler. The
NMSDecimalNumberBehavior-protocol only allows reading.


Just my 2 cents, but I would like to remind you one of the best features of Obj-C: you can always add new methods to existing classes, or even change the existing ones. In your example, if some class doesn't implement the NSCoding protocol, you can add it yourself if you are able to construct the class objects with the usual init... methods (for unarchiving), and if you can acceed the contained information (for archiving).

This helps to wait until Apple corrects the bug... ;-)

Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.


References: 
 >Re: Unexpected behavior of NSNumberFormatter (From: Nick Müller <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.