Re: object Allocation
Re: object Allocation
- Subject: Re: object Allocation
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 19 Apr 2006 14:33:09 -0700
On Apr 19, 2006, at 2:08 PM, Jerrod Fowkes wrote:
"Juan P. Pertierra" <email@hidden> wrote: I agree with
everything, the one thing I do not understand is the issue about
making a copy. My understanding is that in both cases, the result
is simply an address to a newly allocated object. The difference
is when and how it gets deallocated/released: when using
+dictionary..., it is autoreleased.
When using [[NSDictionary +alloc] init...], the object is
implicitly retained.
See:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
index.html>
and:
Hold Me, Use Me, Free Me - Don Yacktman
http://www.stepwise.com/Articles/Technical/HoldMe.html
Memory Management 101 - Erik Barzeski
http://cocoadevcentral.com/articles/000055.php
Memory Management in Objective-C - Michael Beam
http://www.macdevcenter.com/pub/a/mac/2001/07/27/cocoa.html
Very simple rules for memory management in Cocoa - mmalcolm crawford
http://www.stepwise.com/Articles/Technical/2001-03-11.01.html
(referenced from <http://www.alastairs-place.net/cocoa/faq.txt>).
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden