To use a custom key type with NSMutableDictionary, I defined -hash and
-isEqual: but not -copyWithZone:, since the NSDictionary docs say that
keys are retained rather than copied. But when I try to insert a key
of that type, I get an NSInvalidArgumentException saying that my class
does not
On 19 Mar 2007, at 10:24, Michael Gardner wrote:
To use a custom key type with NSMutableDictionary, I defined -hash and
-isEqual: but not -copyWithZone:, since the NSDictionary docs say that
keys are retained rather than copied. But when I try to insert a key
of that type, I get an
On 2007-03-19 02:43:36 -0800 Richard Frith-Macdonald [EMAIL PROTECTED]
wrote:
On 19 Mar 2007, at 10:24, Michael Gardner wrote:
To use a custom key type with NSMutableDictionary, I defined -hash
and
-isEqual: but not -copyWithZone:, since the NSDictionary docs say
that
keys are retained