Re: Problem getting notifications from standard error
Re: Problem getting notifications from standard error
- Subject: Re: Problem getting notifications from standard error
- From: Markus Hitter <email@hidden>
- Date: Wed, 15 Feb 2006 14:50:10 +0100
Am 15.02.2006 um 13:34 schrieb Rick Hoge:
I'd expect the getData: method to be called whenever stderr gets
written to, but it never seems to be invoked.
stderr is write-only, so you'll never get something read from it.
Redirection of stderr can be done in your parent process, only.
Redirecting stderr to stdin isn't difficult, then.
If anyone has an idea of what the problem or solution is, I'd be
very grateful.
Usual solution is to replace NSLog() and implement some MyLog(). To
catch system written NSLog()'s, something more sophisticated is
needed, like poseAsClass(NSException) or some linking hackery to
override the original NSLog().
Markus
P.S.: Please don't tell me you want this because you're too lazy to
implement something around -[NSString stringWithFormat:].
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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