Re: console output -> NSTextView
Re: console output -> NSTextView
- Subject: Re: console output -> NSTextView
- From: Koen van der Drift <email@hidden>
- Date: Sun, 30 May 2004 07:38:17 -0400
On May 30, 2004, at 1:21 AM, Scott Anguish wrote:
On May 29, 2004, at 11:28 PM, Koen van der Drift wrote:
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.
if you're replacing the printf calls with your own routine, why not
just replace it with a macro that creates a new NSString using the
format passed to it, and then calls a routine that directly inserts
the new string at the end of a text view?
I also found this in the archives:
http://cocoa.mamasam.com/COCOADEV/2002/04/1/30200.php
Seems to work fine so far.
- 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.