console output -> NSTextView
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.