Re: Efficiently receiving data from an NSTask

2008-07-08 Thread Martin Hairer
Hi all, > Right now, I am doing the following instead. In the thread that > launched the NSTask (call that the master thread), I poll data from > stdout until the task has died: Coming back to the original question: is it "legal" to have one thread accessing the NSFileHandle bound to the stdout o

Efficiently receiving data from an NSTask

2008-07-06 Thread Martin Hairer
Hi, I am in the situation where I want to launch a helper tool, retrieve the data that it dumps to stdout, and monitor the output of stderr for error messages and progress control. I did figure out that the "standard" way of doing this is along the lines of the "Moriarity" sample code. The problem