NSMutableDictionary requires NSCopying?

2007-03-19 Thread Michael Gardner
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

Re: NSMutableDictionary requires NSCopying?

2007-03-19 Thread Richard Frith-Macdonald
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

Re: NSMutableDictionary requires NSCopying?

2007-03-19 Thread Matt Rice
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