• 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: Dealloc method needed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealloc method needed?


  • Subject: Re: Dealloc method needed?
  • From: email@hidden
  • Date: Mon, 24 Jun 2002 09:02:22 -0500

-dealloc is automagically called when the object is no longer in use..

The rule of thumb (and a good rule it is), if an instance of your class retain's any other objects
then you need (read: really really should) create a -dealloc routine to release those objects ..

-SJM

On Monday, June 24, 2002, at 08:51 AM, Michhle Garoche wrote:

Hello,

In a non document-based application, I've implemented applicationShouldTerminateAfterLastWindowClosed, windowShouldClose, applicationShouldTerminate, so that in any case (excepted in case of arised sheet) when the user closes the main window, the application quits.

In this application, I've a couple of instances variables I've initialized, one of them is a shared instance (for about box).

Should I implement the dealloc method, though I cannot find any case where the dealloc method is called?

Many thanks in advance,
Michhle
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Dealloc method needed? (From: Michèle Garoche <email@hidden>)

  • Prev by Date: Re: How to get notified on PPP connect/disconnect?
  • Next by Date: Re: NSFormatter and the nib
  • Previous by thread: Dealloc method needed?
  • Next by thread: Re: Dealloc method needed?
  • Index(es):
    • Date
    • Thread