Re: piped unzip (and this time it's not the wrong codesnipper)
Re: piped unzip (and this time it's not the wrong codesnipper)
- Subject: Re: piped unzip (and this time it's not the wrong codesnipper)
- From: "b.bum" <email@hidden>
- Date: Thu, 19 Feb 2004 23:03:44 -0800
On Feb 19, 2004, at 9:12 PM, Dan Grillo wrote:
Sometimes popen() is so much easier.
Yup; if you don't need the app to be responsive during the process (or
don't mind threading) and don't mind the event loop stopping while you
read from popen(), then popen() can be quite straightforward.
-readInBackgroundAndNotify: has the advantage of allowing the app to
remain responsive while the developer can [mostly] ignore
threading/synchronization issues.
Neither method avoids the need to periodically consume the task's
output to prevent a full buffer from locking up the app.
b.bum
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.