• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa application and consol out put
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Cocoa application and consol out put (From: Rush Manbert <email@hidden>)

  • Prev by Date: Re: Cocoa application and consol out put
  • Next by Date: After inserting link into text, link continues as user types
  • Previous by thread: Re: Cocoa application and consol out put
  • Next by thread: After inserting link into text, link continues as user types
  • Index(es):
    • Date
    • Thread