• 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: 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.

  • Follow-Ups:
    • Re: NSDictionary question
      • From: Ondra Cada <email@hidden>
    • Re: NSDictionary question
      • From: Andreas Mayer <email@hidden>
References: 
 >NSDictionary question (From: Hisaoki Nishida <email@hidden>)

  • Prev by Date: Re: TIFFRepresentation giving me a tiff WITH an alpha
  • Next by Date: Re: Uneditable Instances in .nibs
  • Previous by thread: Re: NSDictionary question
  • Next by thread: Re: NSDictionary question
  • Index(es):
    • Date
    • Thread