Re: cleanup; dealing with serious errors
Re: cleanup; dealing with serious errors
- Subject: Re: cleanup; dealing with serious errors
- From: "Marcus S. Zarra" <email@hidden>
- Date: Sun, 17 Jul 2005 13:19:18 -0600
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication
*)sender;
It will get called whenever your application is about to quit.
Returning NSTerminateNow will close the application and
NSTerminateCancel will cancel the termination.
On 7/17/05, Roland Silver <email@hidden> wrote:
> I have a Cocoa program which is a wrapper for a core of C-functions
> that carry out the real business of the program. The only class I
> have defined is EmuController, a subclass of NSObject.
> 1. When the program is ready to quit, it must invoke my cleanup()
> function. How do I do that?
> 2. If a serious error occurs during the operation of the program, I
> need to post a message to an error window, wait for the user to
> acknowledge, and then quit, even if the error occurs deep within a
> series of calls. How do I do that?
> --Roland Silver
>
> _______________________________________________
> 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