Re: How to release all objects on 'Quit' of application
Re: How to release all objects on 'Quit' of application
- Subject: Re: How to release all objects on 'Quit' of application
- From: Nicko van Someren <email@hidden>
- Date: Fri, 2 Apr 2004 12:10:13 +0100
On 2 Apr 2004, at 11:45, Ramakrishna Kondapalli wrote:
I would like to release all the active objets when user do a' command Q
'. Is there any default method by calling which I can do this job? If
not what else to do?
The application's delegate can implement applicationShouldTerminate:,
which will be called when the user tries to quit or when the
application is asked to quit for, for instance, a system restart. You
can release things here even if you always return NSTerminateNow to let
the application go ahead and quit.
Nicko
_______________________________________________
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.