| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Just for the one who will fix it, not for complaining: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).
- 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.
| References: | |
| >Re: Unexpected behavior of NSNumberFormatter (From: Nick Müller <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.