Re: NSMutableDictionary setObject:forKey:
Re: NSMutableDictionary setObject:forKey:
- Subject: Re: NSMutableDictionary setObject:forKey:
- From: Andy Lee <email@hidden>
- Date: Sat, 11 Jun 2005 22:08:16 -0400
On Jun 11, 2005, at 9:14 PM, Joe Osborn wrote:
The value can be of any class. The docs are incorrect, though;
they should say that the key should be an (id<NSCopying>).
The docs match the method declaration in the .h file. I agree,
though, that it would be better if the method signature used
(id<NSCopying>).
On Jun 11, 2005, at 9:16 PM, Eric Brunstad wrote:
Sorry, but I was wrong once again. I had always thought that the
value [I think you meant key] must be a string, but now I know that
is not true.
An understandable mistake, since most of the time that's what
dictionaries are used for -- so-called name-value pairs.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden