Re: Cocoa application and consol out put
Re: Cocoa application and consol out put
- Subject: Re: Cocoa application and consol out put
- From: Rush Manbert <email@hidden>
- Date: Mon, 20 Feb 2006 10:52:47 -0800
Jaonary Rabarisoa wrote:
Hi all,
<snip>
In short :
Is it possible to run a carbon or cocoa based application in a console
with some input arguments and to see all the messages printed with
'printf' or 'cout' ? If some of you have some advice it will be helpfull.
Jaonary,
Your Cocoa *.app is a directory. Inside it, your console executable
should be in the Contents/MacOS subdirectory. (To see this, right click
on the *.app and select "Show Package Contents") If you open a console
window, cd to there, and run your application, the console output comes
out on the console, and the GUI should display normally. (Note that I am
basing this on my PPC-only app. I don't know if UB apps behave differently.)
So I think you could write a little shell script that would do this for
you if you feed it the name of the *.app as a parameter.
- Rush
_______________________________________________
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