Re: object Allocation
Re: object Allocation
- Subject: Re: object Allocation
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 19 Apr 2006 14:23:55 -0600
On Apr 19, 2006, at 2:18 PM, Jerrod Fowkes wrote:
dictionaryWithDictionary: object
returns the already allocated address by object and doesn't make a
copy.
Actually, it makes an autoreleased copy.
So that leads me to think that the dictionary that is returned gets
added to the autoreleasepool. thus not having a retain count.
Objects in the autorelease pool have a retain count. All that being
in the autorelease pool does is the retain count gets docked by the
number of times the object was placed in the pool when
NSPopAutoreleasePool() is called.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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