• 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: Spewing stderr to an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Spewing stderr to an NSTextView
      • From: Chris Williams <email@hidden>
References: 
 >Spewing stderr to an NSTextView (From: Chris Williams <email@hidden>)

  • Prev by Date: Re: Leopard real amount of RAM used by application
  • Next by Date: Re: Change a NSMenu's shape?
  • Previous by thread: Spewing stderr to an NSTextView
  • Next by thread: Re: Spewing stderr to an NSTextView
  • Index(es):
    • Date
    • Thread