Re: deallocating instances instantiated in IB
Re: deallocating instances instantiated in IB
- Subject: Re: deallocating instances instantiated in IB
- From: Development <email@hidden>
- Date: Fri, 12 Jul 2002 15:43:59 +0200
Hi,
Am Mittwoch den, 10. Juli 2002, um 23:35, schrieb Chaz:
Hello:
Any instances I use by instantiating in IB do not get deallocated, so
I'm guessing it must be somehow my responsibility to do so. So where
and how do I do this?
a few days ago, I spawned a thread (with subject "dealloc not beeing
called... why?") with similiar question and situation:
just one main window, the app controller object (subclass of NSObject)
creating some objects which should be deallocated on exiting the
program; but the -dealloc method of my app controller object never got
called.
I merely put
- (void)applicationWillTerminate:(NSNotification *)aNotification{
//do clean up stuff here
}
into the controller object and connected it to the File's Owner as its
delegate, and so this delegate method is properly called evrey time the
user
quits the app.
hth,
Dirk Stegemann
_______________________________________________
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.