Re: app controller's dealloc not called
Re: app controller's dealloc not called
- Subject: Re: app controller's dealloc not called
- From: Tito Ciuro <email@hidden>
- Date: Sat, 18 Mar 2006 01:09:40 -0800
Hi Karim,
Check what the docs (NSApplication) states:
applicationWillTerminate:
- (void)applicationWillTerminate:(NSNotification *)aNotification
Discussion
Sent by the default notification center immediately before the
application terminates. aNotification is always an
NSApplicationWillTerminateNotification. You can retrieve the
NSApplication object in question by sending object to aNotification.
Put any necessary cleanup code in this method.
Regards,
-- Tito
On 18/03/2006, at 0:38, Karim Morsy wrote:
Hi,
I have an app controller that I instantiate in interface builder.
I release the objects I allocated in my app controller in its
dealloc method.
however, when I quit the application my dealloc method won't get
called. I always thought that instances created in IB automatically
get sent dealloc when the app terminates....
any ideas what might be missing here ? do I have to work with a
delegate for NSApplication or is there a more convinient way ?
many thanks in advance,
Karim
_______________________________________________
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