Re: Cocoa application and consol out put
Re: Cocoa application and consol out put
- Subject: Re: Cocoa application and consol out put
- From: Will Mason <email@hidden>
- Date: Mon, 20 Feb 2006 11:05:37 -0800 (PST)
This is exactly what macvim (http://macvim.org/OSX/index.php) does. Vim.app is in the Applications folder, waiting to be double clicked, which almost never happens. The shell script gvim lives in your path, and just figures out the right way to invoke Vim.app/Contents/MacOS/Vim. All console messages are printed to the Terminal window from which you invoke the shell script.
Will
----- Original Message ----
From: Rush Manbert <email@hidden>
To: Jaonary Rabarisoa <email@hidden>
Cc: Cocoa-Dev List <email@hidden>
Sent: Monday, February 20, 2006 12:52:47 PM
Subject: Re: Cocoa application and consol out put
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
_______________________________________________
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