• 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: 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


  • Follow-Ups:
    • Re: Cocoa application and consol out put
      • From: Will Mason <email@hidden>
References: 
 >Cocoa application and consol out put (From: Jaonary Rabarisoa <email@hidden>)

  • Prev by Date: Cocoa application and consol out put
  • Next by Date: Re: Cocoa application and consol out put
  • Previous by thread: Cocoa application and consol out put
  • Next by thread: Re: Cocoa application and consol out put
  • Index(es):
    • Date
    • Thread