What do you recommend after the task finishes? I have tried [[outPipe fileHandleForReading] readDataToEndOfFile] after the task finishes and it doesn't seem to improve. Can you maybe give me an example of how to do this right?
On Jul 31, 2012, at 6:01 PM, Wim Lewis <w...@omnigroup.com> wrote: > I haven't looked at the code you posted, but is it possible that you're > reading from the NSPipe in such a way that you're mixing up the "end-of-file" > indication with the "no more data is available right now, but may arrive > later" indication? That's a common reason for this kind of problem. > > IIRC, NSPipe simply wraps a Unix pipe, which will hold unread data even after > the writer closes its end of the pipe (that is, the writer can write some > data and exit before the reader reads anything, and the reader will still get > all the data followed by EOF). _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com