• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDictionary question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSDictionary question (From: Hisaoki Nishida <email@hidden>)

  • Prev by Date: Re: NSOutlineView selection questions
  • Next by Date: Jobs
  • Previous by thread: RE: NSDictionary question
  • Next by thread: Using Objective-C from Cocoa-Java code
  • Index(es):
    • Date
    • Thread