Re: [newbie] Questions about NSTask and GUI/Shell (urgent help needed)
Re: [newbie] Questions about NSTask and GUI/Shell (urgent help needed)
- Subject: Re: [newbie] Questions about NSTask and GUI/Shell (urgent help needed)
- From: John Nairn <email@hidden>
- Date: Thu, 15 Aug 2002 12:33:32 -0600
You might look at the MathPaper example in the "Building Cocoa
Applications" book. It uses an NSTask and communicates using standard
input and output pipes. The Moriarity example is only for tasks that do
not need such communication.
On Thursday, August 15, 2002, at 10:13 AM, cocoa-dev-
email@hidden wrote:
I'm doing a GUI Cocoa application for Sicstus Prolog that runs in the
shell on MacOS X, for my MSc.
I managed to start Sicstus through my program, using NSTask and basing
my code on Moriarty.
But the way sicstus works means that I need to have some sort of
interactive task working, in the sense that while sicstus is running i
can use my GUI program to input prolog files to sicstus, perform
queries, etc...
As far as I know NSPipe is used to communicate between different tasks,
but I dont think that would help me in my case. Do i have to use
AppleScript to "simulate" everything for the user or can I do this
easily using NSTask in Cocoa?
I've been looking through the archives and other pages, but i havent
found examples about how to do a gui frontend to a complete shell
application such as sicstus...
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.