Skip navigation.
 
mlRe: Cocoa applications and exit codes
FROM : Andrew Farmer
DATE : Mon Nov 22 20:21:18 2004

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.

Related mailsAuthorDate
mlCocoa applications and exit codes Gregor Nobis Nov 21, 20:13
mlRe: Cocoa applications and exit codes Andrew Farmer Nov 22, 01:02
mlRe: Cocoa applications and exit codes Gregor Nobis Nov 22, 09:53
mlRe: Cocoa applications and exit codes Andrew Farmer Nov 22, 20:21