Re: Cocoa applications and exit codes
Re: Cocoa applications and exit codes
- Subject: Re: Cocoa applications and exit codes
- From: Andrew Farmer <email@hidden>
- Date: Mon, 22 Nov 2004 11:21:18 -0800
On 22 Nov 2004, at 00:53, Gregor Nobis wrote:
Andrew Farmer wrote:
/* it's simpler than you think */
exit(exitcode);
Sounds like it should work. ;)
But does this terminate the Cocoa app all right? Does, for example,
the delegate's applicationShouldTerminate: method get called? I'd like
to smoothly quit NSApplication.
Nope... so make sure you clean up everything manually first.
Keep in mind, though, that there's nothing wrong with not releasing
everything before you quit. As long as you don't have any files you
need to write or delete before you quit, exit()ing directly is just
fine.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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