Re: Spewing stderr to an NSTextView
Re: Spewing stderr to an NSTextView
- Subject: Re: Spewing stderr to an NSTextView
- From: Thomas Engelmeier <email@hidden>
- Date: Tue, 13 Nov 2007 19:30:14 +0100
On 13.11.2007, at 00:39, Chris Williams wrote:
I have the NSTextView, and I know how to open /dev/stderr as a file,
but
where I'm baffled is how to get the latter into the former. :)
Follow the Moriarity sample code (http://developer.apple.com/samplecode/Moriarity/
) and attach the NSFileHandle not to the forked but your apps stdout /
stderr filehandles.
Besides that, you might want to reconsider using you own log function
that includes timestamps, log levels and filters depending on the
loglevel and / or read up on syslog and asl (man syslog, man asl)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden