Re: NSDictionary question
Re: NSDictionary question
- Subject: Re: NSDictionary question
- From: Andreas Mayer <email@hidden>
- Date: Fri, 15 Nov 2002 00:45:27 +0100
Am Donnerstag, 14.11.02 um 07:58 Uhr schrieb Hisaoki Nishida:
In the instance method description of initWithObjects:forKeys: in
NSDictionary:
It says that value objects are retained while key objects are copied.
How do I know if the object I am adding is a value or a key object?
The first argument is the value, the second the key. This has nothing
to do with NSValue.
Also, in a related matter, just to be sure I want to ask if
objectForKey: instance method returns a copy or a reference.
AFAIK everything returns references, unless the documentation
explicitely says otherwise.
In most cases it would be quite useless to *not* get the original
object back.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.