Re: When is my delegate released?
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.