[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #22565] EOKeyValueCoding: Support modern Cocoa KVC semantics fo

From: David Ayers
Subject: Re: [bug #22565] EOKeyValueCoding: Support modern Cocoa KVC semantics for NSArray aggregate functions
Date: Sun, 16 Mar 2008 21:48:58 +0100
User-agent: Mozilla-Thunderbird (X11/20080110)

Richard Frith-Macdonald schrieb:

> I added [NSString-decimalValue] to base, as a test shows that it's present in
> MacOS-X Foundation (though it's not in either the documentation or the header
> files).


> Not sure what to do about in aggregate functions.  The documentation
> specifically says they should use doubles ... so perhaps it would be better
> for GDL2 to override the base implementations .. or maybe we could write a 
> test
> to find out if apple actually uses decimal values even though the doc says
> doubles.  Perhaps we should allow more precision than apple anyway.

We need to override NSArray's implementation anyway so it makes no
difference once EOControl is linked.  And I agree that if the
documentation explicitly refers to doubleValue then -base has good
reason to stick to it.

But I'm sure people will find it surprising when they start relying on
on those aggregate functions outside of GDL2 and notice that round(x.5)
will not give them consistent results.  So I would also sympathize with
an NSDecimal implementation.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]