• 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
NSTask, setStandardOutput, and setStandardError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask, setStandardOutput, and setStandardError


  • Subject: NSTask, setStandardOutput, and setStandardError
  • From: Chilton Webb <email@hidden>
  • Date: Thu, 25 Oct 2001 12:23:14 -0500

Often I've found that by asking the right question, I get a useful answer, but in this case I'm not sure what the right question is, so I wrote it two different ways. I'm only after one answer, which is a C function name that I can use to communicate with my Cocoa shell, but I'm not sure just how to describe the interaction. That said...

Question v.1:
I assume that NSTask reroutes printf to setStandardOutput.

I'd like to respond to events from within my server tool without using printf. Again, I assume that some call to an error function would allow me to communicate with my cocoa shell via setStandardError. Is this correct? If so, which function do I need to call from within my c tool?

Question v.2:
I'm assuming that setStandardOutput is what a call to printf would send data to.
what function (from within a c tool) would I need to call to send data to setStandardError?

Thanks,
-Chilton


  • Follow-Ups:
    • Re: NSTask, setStandardOutput, and setStandardError
      • From: email@hidden
  • Prev by Date: Re: Images in a Table
  • Next by Date: Re: problems with NSAffineTransform
  • Previous by thread: Re: Images in a Table
  • Next by thread: Re: NSTask, setStandardOutput, and setStandardError
  • Index(es):
    • Date
    • Thread