Re: Active Read/Write of NSTask
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