NSDecimalNumber queries
NSDecimalNumber queries
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+LjsAdditions.m
Jonathan
_______________________________________________
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