Re: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?
Re: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?
- Subject: Re: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?
- From: glenn andreas <email@hidden>
- Date: Fri, 20 Jun 2008 15:37:09 -0500
On Jun 20, 2008, at 3:26 PM, Michael Swan wrote:
The documentation says that decimalNumberWithDecimal: takes an
NSDecimalNumber as its argument and tmpValueA is an NSDecimalNumber
unless I am missing something.
The documentation says:
+ (NSDecimalNumber *)decimalNumberWithDecimal:(NSDecimal)decimal
I.e., it take an NSDecimal structure, not a pointer to an
NSDecimalNumber.
Since NSDecimalNumber is an immutable value, your code can just do:
tmpValueC = tmpValueA;
Glenn Andreas email@hidden
The most merciful thing in the world ... is the inability of the human
mind to correlate all its contents - HPL
_______________________________________________
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