Re: Release vs. autorelease
Re: Release vs. autorelease
- Subject: Re: Release vs. autorelease
- From: "Mohan Parthasarathy" <email@hidden>
- Date: Mon, 12 Jan 2009 13:43:01 -0800
Hi,
Sorry for the incorrect wording. I assumed that the reference count reached
zero which is what you are hinting at i guess..
thanks
mohan
On Mon, Jan 12, 2009 at 12:47 PM, Andy Lee <email@hidden> wrote:
> On Jan 12, 2009, at 2:37 PM, Mohan Parthasarathy wrote:
>
>> In places other than dealloc where memory needs to be released (e.g,
>> reassigning pointer to objects), is there a difference in doing
>> autorelease
>> or release of the object in terms of perfomance etc. ? I can see that the
>> memory is released immediately in one case whereas in the other it is
>> slightly delayed. Is there any other difference ? What is the right thing
>> to
>> do ?
>>
>
> Not a direct answer to your question, but: make sure you understand the
> distinction between release and dealloc. Releasing an object does not
> necessarily free the object's memory. It's possible you understand this
> perfectly well -- I just wasn't sure from your wording.
>
> --Andy
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden