Re: dealloc never called
Re: dealloc never called
- Subject: Re: dealloc never called
- From: Michael Rothwell <email@hidden>
- Date: Sun, 6 Feb 2005 20:20:33 -0500
That stuff probably should be inside
- (void)applicationWillTerminate:(NSNotification *)aNotification
{
}
Michael Rothwell
email@hidden
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
{
NSLog (@"dealloc!");
[self saveData]; // just to be sure that the
// latest data is saved to disk
[prefs synchronize];
[prefs release];
[classPathRecords release];
//[recordsFile release];
// recordsFile = nil;
classPathRecords = nil;
prefs = nil;
[super dealloc]; // pass the ball to Controller's
// superclass so it can do its own deallocation
}
-----------------------------------------
Probably again something basic, I am missing?
Cheers,
Phil
_______________________________________________
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
_______________________________________________
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