• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'? (From: Michael Swan <email@hidden>)

  • Prev by Date: Linking with OpenSSL
  • Next by Date: Re: Linking with OpenSSL
  • Previous by thread: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?
  • Next by thread: Linking with OpenSSL
  • Index(es):
    • Date
    • Thread