Re: NSTask interaction
Re: NSTask interaction
- Subject: Re: NSTask interaction
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 18 Nov 2001 23:20:15 +0100
On Sunday, November 18, 2001, at 07:10 , Michael Mulligan wrote:
I am fairly new to Cocoa so I apologize for my stupid question in
advance. ;-)
I am trying to make something of a command line tool wrapper as my
first real project. However, I am having trouble as I am not sure if I
am expecting too much of an NSTask. As I understand, when you run an
NSTask, you can only pass it arguments once, correct? My problem is
that I need to further interact with the task--I don't want it to
simply end. I want to keep passing it data and getting the output into
an NSString for parsing. I am under the impression that an NSPipe comes
into play, but I am really confused about all of this. Is this possible
and if so, how would I do it?
I've written two articles about that subject, they're available at
http://www.cocoadevcentral.com
But be aware that they're in the general section and not in the basics
section for a reason.
For understanding pipes you need some knowledge about Cocoa and UNIX.
andy