• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: piped unzip (and this time it's not the wrong codesnipper)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >piped unzip (and this time it's not the wrong codesnipper) (From: Stefan Fisk <email@hidden>)
 >Re: piped unzip (and this time it's not the wrong codesnipper) (From: Stefan Fisk <email@hidden>)
 >Re: piped unzip (and this time it's not the wrong codesnipper) (From: "b.bum" <email@hidden>)

  • Prev by Date: Adding custom window widget to window
  • Next by Date: Re: Data Source object for NSTableView
  • Previous by thread: Re: piped unzip (and this time it's not the wrong codesnipper)
  • Next by thread: NSArchiverArchiveInconsistency ???
  • Index(es):
    • Date
    • Thread