NSTask, setStandardOutput, and setStandardError
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