Re: printf to cocoa
Re: printf to cocoa
- Subject: Re: printf to cocoa
- From: John Stiles <email@hidden>
- Date: Wed, 27 Apr 2005 18:04:08 -0700
If you can change the C code to call a function you write instead of
calling printf (maybe use a macro?), this would be easy. Call vsnprintf
to get the output and then append that output to your NSTextView.
On Apr 27, 2005, at 5:27 PM, Adam wrote:
I have a bunch of .c files that I would just like to put a cocoa
wrapper on. This part I have done easy. A button from my window calls
an IBACTION method which calls a function from the c code which does
bla bla bla who cares it works. However, the c code prints errors
during this process with printf which only shows up in the console. Is
there any way to redirect what is sent to printf to an NSTextView? Or
somehow get it to display in my cocoa GUI?
Adam
_______________________________________________
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
_______________________________________________
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