Re: autorelease use...
Re: autorelease use...
- Subject: Re: autorelease use...
- From: "Marcus S. Zarra" <email@hidden>
- Date: Mon, 18 Jul 2005 08:41:42 -0600
Only where you "own" the variable. If you did not call init or retain on the
variable, chances are you don't own it and should not autorelease it. I am
sure someone else here on the list can come up with a better rule than mine
:)
Also remember that autorelease is expensive. A lot more expensive than just
release. So if you can release it normally somehow, you are better off as
too many autoreleases is going to cause memory spikes.
On 7/18/05, Luc Vandal <email@hidden> wrote:
>
> Thanks! So I can play it safe and use autorelease everywhere I don't
> want to retain a variable's content?
>
> Luc
>
>
_______________________________________________
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