Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Rasmus Skaarup
d size - and I can definetely see that the output gets chopped off (sometimes mid-line) - so I am never able to get the last output from the task. Can someone help me with this? Best regards Rasmus Skaarup ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Rasmus Skaarup
On 11/04/2010, at 21.17, Ken Thomases wrote: > On Apr 8, 2010, at 9:57 AM, Rasmus Skaarup wrote: >> [[NSNotificationCenter defaultCenter] addObserver:self >> >> selector:@sele

Re: Problem with reading an NSPipe->NSFileHandle to end

2010-04-12 Thread Rasmus Skaarup
> Try simplifying your app by eliminating the use of background threads. Or, > if you feel you must use background threads for long-running computation, use > them only for handling the data after receiving it. Do everything involving > launching the task and initiating background reads of it