Re: NSDictionary question
Re: NSDictionary question
- Subject: Re: NSDictionary question
- From: Craig Stanton <email@hidden>
- Date: Sat, 16 Nov 2002 09:06:06 +1300
On Thursday, November 14, 2002, at 07:58 PM, Hisaoki Nishida wrote:
In the instance method description of initWithObjects:forKeys: in
NSDictionary:
Initializes a newly allocated dictionary with entries constructed from
the contents of the objects and keys arrays. This method steps through
<snip>
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?
It is referring to the two arrays. The Object array has the Values
which are retained, and the Key array has the Keys which are copied.
initWithObjects:<values> forKeys:<keys>
I hope this helps,
Craig
_______________________________________________
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.