• 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: When is my delegate released?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When is my delegate released?


  • Subject: Re: When is my delegate released?
  • From: Finlay Dobbie <email@hidden>
  • Date: Sun, 7 Jul 2002 14:57:06 +0100

On Sunday, July 7, 2002, at 01:43 PM, Allan Odgaard wrote:

On sxndag, juli 7, 2002, at 02:18 , Finlay Dobbie wrote:

As of such, most of my apps have their controller instantiated in the Nib-file, but should I react on "applicationWillTerminate" or similar, and then call release on my delegate?
You probably don't need to worry, as when your application quits all the memory it used is automatically reclaimed.

I'm from the old school who does worry about these things... also, some stuff like saving files, unregistering hotkeys, taking down public NSConnections or similar really ought to be done when the application is shutdown.

In that case, use NSApplication's delegate methods or notifications, but you don't HAVE to explicitly release all your memory, although you can.

-- Finlay
_______________________________________________
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.

  • Follow-Ups:
    • Re: When is my delegate released?
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: When is my delegate released? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Non-standard Cocoa RTF Unicode encoding?
  • Next by Date: Re: When is my delegate released?
  • Previous by thread: Re: When is my delegate released?
  • Next by thread: Re: When is my delegate released?
  • Index(es):
    • Date
    • Thread