Redirect stderr to NSTextView
Redirect stderr to NSTextView
- Subject: Redirect stderr to NSTextView
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 20 Jun 2004 13:05:20 +0200
I have an app, which uses a function, which has rather many calls to
fprintf(stderr,...).
I would like to have this output not go to console.log but directly
into a NSTextView of my app.
Is there a simple way to do this?
(It must be possible, because Xcode does it.)
Or should one redirect (from inside my app) stderr to some /tmp/mess
(probably using freopen() ) ?
Then I could, after the function has returned, put this file into my
NSTextView.
Gerriet.
_______________________________________________
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.