thanks guys, this helps ^_^

On Jul 31, 2009, at 12:07 AM, Clark Cox wrote:

On Thu, Jul 30, 2009 at 10:06 PM, Clark Cox<clarkc...@gmail.com> wrote:
On Thu, Jul 30, 2009 at 10:18 AM, DerNalia<theprecognit...@gmail.com> wrote:
If I do something like:
varName = [dictionaryName objectForKey:@"keyName"];

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

No.

or a pointer?


That should have been:

All objects are passed as pointers

This method follows the normal Cocoa memory management rules. The object did
not come from an alloc..., copy... or new... method, and you didn't
retain it yourself, so you do not own a reference to it. If you want
it to stick around longer than the dictionary itself, it's up to you
to either make a copy


--
Clark S. Cox III
clarkc...@gmail.com




--
Clark S. Cox III
clarkc...@gmail.com

_______________________________________________

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

Reply via email to