Re: dealloc never called
Re: dealloc never called
- Subject: Re: dealloc never called
- From: Charlton Wilbur <email@hidden>
- Date: Sun, 6 Feb 2005 22:13:07 -0500
On Feb 6, 2005, at 7:59 PM, Philipp Ringli wrote:
I have this code in my Controller.m and it never executes upon
quitting the app:
----------------------------------------
- (void)dealloc
{
[...]
}
-----------------------------------------
Probably again something basic, I am missing?
You've already got a solution, but I figured you should have an
explanation too. As an efficiency measure, there's no guarantee that
-dealloc will be called when an application is terminating. The theory
is that all the application's memory is going to be returned to the OS
anyway, so there's no point in tidying it up; and any actions that
should be triggered when the application terminates can be invoked from
the application delegate's -applicationWillTerminate: method.
Charlton
--
Charlton Wilbur
email@hidden
email@hidden
_______________________________________________
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