Re: Wrapping an Interactive Unix Executable
Re: Wrapping an Interactive Unix Executable
- Subject: Re: Wrapping an Interactive Unix Executable
- From: Jérôme Laurens <email@hidden>
- Date: Thu, 16 Dec 2004 10:50:28 +0100
Le 16 déc. 04, à 09:57, Erik André Mendoza a écrit :
Hi,
I'm working on a GUI wrapper for a program called Latin WORDS, which
was originally developed in Ada for DOS, but which has since been
ported to OS X. I've managed to create a working program using
NSTask. However, the program is designed to remain running and
receive an indefinite amount of input. As I understand, NSTask can
only be run once, which makes it not ideally suited to my needs, as I
wind up having to launch the program and quit it every time the user
inputs a new argument, which is quite inefficient. Does anybody know
of a better way to accomplish my goal? I've done a lot of searching,
and I think the system() C function looks promising, but it may also
suffer from the same issues as NSTask. Thanks in advance.
It is true that the task can only be launched once, but the NSTask will
last as long as the executable is running.
So NSTask will perfectly fit your needs.
I already used an NSTask for some sort of interactive terminal by
launching /bin/sh, it worked, except for some shell commands expecting
a real terminal, but that's not the matter here.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
bourgogne.fr
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden