• 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: About "[super dealloc];"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About "[super dealloc];"


  • Subject: Re: About "[super dealloc];"
  • From: Greg Parker <email@hidden>
  • Date: Mon, 1 Jun 2009 12:44:42 -0700

On Jun 1, 2009, at 4:59 AM, Graham Cox wrote:
On 01/06/2009, at 9:52 PM, Bright wrote:
When should use the "[super dealloc];"? Could anyone list all of case.

Whenever you have overridden -dealloc. Simple as that.

Pretty much. If you override +alloc then you may or may not want to call [super dealloc], depending on exactly what your +alloc implementation does. But you should almost never override +alloc.



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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


References: 
 >About "[super dealloc];" (From: Bright <email@hidden>)
 >Re: About "[super dealloc];" (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSXMLParser - howto resolve entities defined in DTD
  • Next by Date: Re: Adding NSMenuItem in IB
  • Previous by thread: Re: About "[super dealloc];"
  • Next by thread: Re: About "[super dealloc];"
  • Index(es):
    • Date
    • Thread