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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com