Re: Cocoa applications and exit codes
Re: Cocoa applications and exit codes
- Subject: Re: Cocoa applications and exit codes
- From: Gregor Nobis <email@hidden>
- Date: Mon, 22 Nov 2004 09:53:48 +0100
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.
Gregor
> On 21 Nov 2004, at 11:13, Gregor Nobis wrote:
>
>> Hi all!
>>
>> I am writing a Cocoa-based application that runs a command line tool
>> in a second thread. When that program terminates I want to save its
>> exit code and have the Cocoa application quit and return that code.
>>
>> I have done a lot of searching and reading and could not find anything
>> on the topic. Is there a way to tell NSApplication to return a
>> specific exit code on termination? Any other thoughts?
_______________________________________________
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