• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem getting notifications from standard error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Problem getting notifications from standard error
      • From: Rick Hoge <email@hidden>
References: 
 >Problem getting notifications from standard error (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: nsarraycontroller, bindings and big databases
  • Next by Date: Re: Problem getting notifications from standard error
  • Previous by thread: Problem getting notifications from standard error
  • Next by thread: Re: Problem getting notifications from standard error
  • Index(es):
    • Date
    • Thread