• 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: NSMutableDictionary Poitners
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary Poitners


  • Subject: Re: NSMutableDictionary Poitners
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 30 Jul 2009 16:08:58 -0400

On Jul 30, 2009, at 1:18 PM, DerNalia wrote:

If I do something like:
varName = [dictionaryName objectForKey:@"keyName"];

does that return a copy of what is in the dictionary? or a pointer?

It returns the object itself (as a pointer by necessity). It doesn't copy anything as that wouldn't make sense in many cases. It leaves it up to the caller to make a copy of an object it's stored.


--
I.S.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSMutableDictionary Poitners (From: DerNalia <email@hidden>)

  • Prev by Date: Bindings for dictionaries inside of an array
  • Next by Date: How to tell other controller that orientationDidChange
  • Previous by thread: NSMutableDictionary Poitners
  • Next by thread: Re: NSMutableDictionary Poitners
  • Index(es):
    • Date
    • Thread