• 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: [newbie] Questions about NSTask and GUI/Shell (urgent help needed)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: How do you draw a single pixel line?
  • Next by Date: Re: Setting a class' action
  • Previous by thread: [newbie] Questions about NSTask and GUI/Shell (urgent help needed)
  • Next by thread: [newbie] Disclosure triangles
  • Index(es):
    • Date
    • Thread