Re: Using NSTask to execute softwareupdate
Joar Wingfors <[email protected]> Sat, 8 Jan 2011 10:06:05 -0800
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On 8 jan 2011, at 09.59, Colin Swelin wrote: > So i'm waiting for the task to complete, then I do my thing with the > results. One of the most common mistakes with using NSTask is not emptying the pipes as data come in while the task is running. NSPipe has a buffer that can fill up with incoming data, and when it does, the communication stalls until you empty it. See the many discussions on this topic in various Cocoa mailing list archives. j o a r