• 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: Connecting standard output to an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting standard output to an NSTextView


  • Subject: Re: Connecting standard output to an NSTextView
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 2 Feb 2002 10:07:01 +0000

On Saturday, February 2, 2002, at 04:21 AM, Zac Belado wrote:

I've initiated an NSTask and I want to display the results (as they occur)
to the user in a textview. I know the NSTask has a setStandardOutput method
but this does, correct me if I am wrong, require the results to first be
written out to an external file.

You can use setStandardOutput:aNSFileHandle, and then use [aNSFileHandle readInBackgroundAndNotify] for asynchronous reading.

-- Finlay


References: 
 >Connecting standard output to an NSTextView (From: Zac Belado <email@hidden>)

  • Prev by Date: Re: sound advice
  • Next by Date: Re: Asynchronous call of Selector - is this code OK?
  • Previous by thread: Re: Connecting standard output to an NSTextView
  • Next by thread: sound advice
  • Index(es):
    • Date
    • Thread