• 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
console output -> NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

console output -> NSTextView


  • Subject: console output -> NSTextView
  • From: Koen van der Drift <email@hidden>
  • Date: Sat, 29 May 2004 23:28:53 -0400

Hi,

The project I am working on was originally written to run in the console, and I am converting it to a Cocoa app. The code is written in C and has dozens of printf calls all scattered around the code in various files. If I run the program, the output of those calls is now directed to the console, but I would like to display it in an NSTextView in the main window.

Maybe I can replace all the printf calls with myPrintf, which then uses a Notification that is picked up by the window controller which passes the data to the NSTextView. Not sure if this will work, because the number of arguments for the printf calls is not always the same.

Any suggestions how to approach this?

many thanks,

- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: console output -> NSTextView
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Newbie Alert: NSMovieView with control won't update when movie changes.
  • Next by Date: Re: How to upload dictionary to online URL
  • Previous by thread: Newbie Alert: NSMovieView with control won't update when movie changes.
  • Next by thread: Re: console output -> NSTextView
  • Index(es):
    • Date
    • Thread