Re: object Allocation
Re: object Allocation
- Subject: Re: object Allocation
- From: Jerrod Fowkes <email@hidden>
- Date: Wed, 19 Apr 2006 13:18:03 -0700 (PDT)
thank you, however I have a firm enough grasp on retain and release. I just need to know where it is being applied. Here is what I am guessing:
dictionaryWithDictionary: object
returns the already allocated address by object and doesn't make a copy. However I don't think this could be, since you could just set dict = anotherDict. So that leads me to think that the dictionary that is returned gets added to the autoreleasepool. thus not having a retain count.
alloc] initWithDictionary: object
gets it's retainCount incremented because it was allocated. So it would need to be released so that it's retain count can go back to zero to be allocated.
I need to be confirmed in this. -Jerrod Fowkes
Nick Zitzmann <email@hidden> wrote:
On Apr 19, 2006, at 2:06 PM, Jerrod Fowkes wrote:
> creates problems later on in code. I think it has something to do
> with the autoReleasePool. not sure. My question is, when the class
> method gets called, it doesn't actually allocate the object 'dict'?
Nick Zitzmann
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
_______________________________________________
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