• 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: Active Read/Write of NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Active Read/Write of NSTask


  • Subject: Re: Active Read/Write of NSTask
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 7 Oct 2009 23:40:44 -0700

On Tue, Oct 6, 2009 at 4:30 PM, Kevin Ferguson
<email@hidden> wrote:
> Any ideas on how to accomplish what I'm after?

You might want to brush up on your UNIX a bit.  You can't tell when
the process on the other end of the pipe blocks, nor should you need
to.  You just start sending data down your end of the pipe, and the
other end will pick it up when it's good and ready.  If it fails to,
you get SIGPIPE.

As for actually getting that data down there in the first place,
NSTextView seems like the logical choice.  You will need to be force
the insertion point to never move, though, except in cases of hitting
the Delete key, in order to match up with the stdin semantics.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Active Read/Write of NSTask (From: Kevin Ferguson <email@hidden>)

  • Prev by Date: Re: Session log-out on Snow Leopard
  • Next by Date: Re: unused window initializer in document-based cocoa app
  • Previous by thread: Active Read/Write of NSTask
  • Next by thread: Re: Active Read/Write of NSTask
  • Index(es):
    • Date
    • Thread