I require to use NSDecimalNumber extensively.

When creating NSDecimalNumbers it is advised not to use the NSNumber subclass 
initWithXXX methods:
http://www.cocoabuilder.com/archive/cocoa/227178-question-on-estimating-arraywithcapacity.html#227253
I presume that this still applies.

To me it would seem that there is ample scope for a decent NSDecimalNumber 
category providing factory and convenience methods.
Adding lists of objects for example:

- (void)addDecimalNumbers:(NSDecimalNumber *)number, … 
NS_REQUIRES_NIL_TERMINATION;

Is anybody aware of a useful pre-existing NSDecimalNumber category?

My searches have turned up:
https://github.com/jmoody/LJS/blob/master/Categories/Foundation/NSDecimalNumber%2BLjsAdditions.m

Jonathan













_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to