How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?

2008-06-20 Thread Michael Swan
Perhaps someone else has seen this before but it makes no sense to me. The included code is from a NSManagedObject subclass and is part of a method to return a readonly property that is based on the value of two attributes (amount frequency). With the this code: (I removed irrelevant code

Re: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?

2008-06-20 Thread glenn andreas
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