• 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
Cocoa application and consol out put
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa application and consol out put


  • Subject: Cocoa application and consol out put
  • From: Jaonary Rabarisoa <email@hidden>
  • Date: Mon, 20 Feb 2006 19:36:14 +0100

Hi all,
I don't know if it is the best place to ask my question. I have a console based application that use the gui just for the visualization. You may think of a scientific computation that outputs the result of the computation on the console and draw a simulation on a graphical window ( for instance an NSView). So my question is :
is it possible to do something like this on mac os using cocoa or carbon ?
On a linux system, it's simple to do because we can run a GUI application on a console with
'./my_app arg1 ... arg2'
and we can see all the result to the call of the 'printf' function on the console. With Mac os we have to create create a bundle 'MyApp.app' in order to get a correct behavior of the GUI in os x. Then to run the application we just need to double click on the application icon or run it with 'open my_app.app'. But in this case we cannont see all the result of the printf function. Here I don't like to use something like 'NSLog' to ouput my messages because I need my code to be portable on other operating system. So I really need to output my messages with 'printf' or 'cout'.
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.


Best regards,

Jaonary
_______________________________________________
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: Rush Manbert <email@hidden>
  • Prev by Date: Re: table view with non-selectable rows
  • Next by Date: Re: Cocoa application and consol out put
  • Previous by thread: Re: table view with non-selectable rows
  • Next by thread: Re: Cocoa application and consol out put
  • Index(es):
    • Date
    • Thread