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: Sun, 21 Nov 2004 16:02:42 -0800
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?
/* it's simpler than you think */
exit(exitcode);
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