[comp.sys.mac] MPW Tools Stand-Alone

boba@iscuva.UUCP (02/09/87)

Here's a question for you MPW experts.  I've ported a programming
language into the MPW environment (the Icon language) and it works just
fine.  The problem:  Icon fans would like to have a stand-alone version
that doesn't need MPW.  Icon is public domain, and is normally
distributed for the cost of distribution by the University of Arizona.
It consists of a translator, linker, and interpreter.  As it stands,
MacIcon is available only to those who are willing to spend $150 (March
1 price) on the MPW shell.

My question:  Is there a fairly simple way to make programs written as
MPW tools stand alone?

It appears that MPW console i/o is capable of running stand-alone.  The
main problem is getting the program loaded and passing parameters to
it.

Any ideas would be severely appreciated!
-- 

Bob Alexander	   ISC Systems Corp.  Spokane, WA  (509)927-5445
		   UUCP: ihnp4!tektronix!reed!iscuva!boba

dgold@apple.UUCP (02/12/87)

In article <451@iscuva.UUCP> boba@iscuva.UUCP (Bob Alexander) writes:
>My question:  Is there a fairly simple way to make programs written as
>MPW tools stand alone?
>
>It appears that MPW console i/o is capable of running stand-alone.  The
>main problem is getting the program loaded and passing parameters to
>it.
Getting the program loaded is no problem:  just option-command double-click
on it in the Finder.  This signals the Finder to launch the program
regardless of the file type not being APPL.  Of course, it had better be
able to run as an application, which MPW tools can if launched in this
fashion.

Parameters are fairly hopeless.  You will have to detect the fact that you
are not running under the MPW Shell (there's a way of doing this, but it
escapes me for the moment) and put up a dialog or use some other means
(as a last resort, console I/O) to get your parameters.


-- 
David Goldsmith
Apple Computer, Inc.
MacApp Group

AppleLink: GOLDSMITH1
UUCP:  {nsc,dual,sun,voder,ucbvax!mtxinu}!apple!dgold
CSNET: dgold@apple.CSNET, dgold%apple@CSNET-RELAY

lsr@apple.UUCP (02/12/87)

In article <467@apple.UUCP> dgold@apple.UUCP (David Goldsmith) writes:
>
>Parameters are fairly hopeless.  You will have to detect the fact that you
>are not running under the MPW Shell (there's a way of doing this, but it
>escapes me for the moment) and put up a dialog or use some other means
>(as a last resort, console I/O) to get your parameters.
>

There is the call IEStandalone in the Integrated Environment library
(IntEnv.p).  

-- 
Larry Rosenstein

Object Specialist
Apple Computer

AppleLink: Rosenstein1
UUCP:  {sun, voder, nsc, mtxinu, dual}!apple!lsr
CSNET: lsr@Apple.CSNET