Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Cocoa application and consol out put (From: Jaonary Rabarisoa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.