• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: autorelease use...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >autorelease use... (From: Luc Vandal <email@hidden>)
 >Re: autorelease use... (From: "Tristan O'Tierney" <email@hidden>)
 >Re: autorelease use... (From: Luc Vandal <email@hidden>)

  • Prev by Date: Re: Array question
  • Next by Date: Re: autorelease use...
  • Previous by thread: Re: autorelease use...
  • Next by thread: Re: autorelease use...
  • Index(es):
    • Date
    • Thread