klingspo@mozart.cs.colostate.edu (Steve Klingsporn) (03/02/91)
To the gentleman who asked about MPW 3.1 and the inability to run applications or, rather, programs that are dependent on a "console environment," here is your solution. MPW 3.1 and greater don't allow you to build a double-clickable application out of a simple C or Pascal program designed to run under unix or (I guess) MPW 2.0. What you have to do is go under "Build" to "Make Build Commands" and click in the "Make MPW Tool" radio button. Then, just execute the program from within the MPW shell by having your current directory be the directory of the program, typing the program name, and hitting <cmd + return> or <enterKey>. If you are a registered developer, and have subscribed to the "E.T.O" Series of CD-ROMs, you'll find the latest beta copies of MPW 3.2, which has a wonderful solution for this problem, "SIOW Applications," which stand for "Simple Input/Output Window." It basically builds a little Macintosh application shell that gives you a window that your program will run in... Unfortunately Apple only currently includes the object code to these routines; it's impossible to delete the routines that prompt you to "Save text in window?" at the end nor make a menuItem that "re-runs" your program in the window. Apple, if you're listening, these would be cool features -- include the source in MPW 3.2 final, please, or at least 2 flags in the Build command line. :) Hope this helps. You may want to note that READLN may only accept your input if you type <cmd + return> to "put in" input lines prompted, and may include the prompt text as well, if I remember (enterKey works too). SIOW solves this problem very nicely. I hope this helps, Steve Klingsporn