• 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: NSTask, NSPipe's and interactive UNIX command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask, NSPipe's and interactive UNIX command


  • Subject: Re: NSTask, NSPipe's and interactive UNIX command
  • From: "Mike Davis" <email@hidden>
  • Date: Wed, 2 Jan 2002 10:57:52 -0500

Put the reader into a thread. It's what I did for Only Mortal
(http://homepage.mac.com/only_mortal/) and it worked well.

You have to do some communication between the reader thread and the
application to get the data back for display but it's pretty trivial. I
think NSConnection has an example of it in there, though you will need a
machanism to kill the thread off when it blocks if the user quits the app
(invalidate the connection).


  • Prev by Date: Re: Follow-up: AppleScript Studio
  • Next by Date: AppleScript Studio: More Observations
  • Previous by thread: Re: Follow-up: AppleScript Studio
  • Next by thread: Re: NSTask, NSPipe's and interactive UNIX command
  • Index(es):
    • Date
    • Thread