Re: NSMutableDictionary Poitners
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