OFFICAL QSMACK SITE


QSmack Frontend on a Macintosh


Note:This was tested on an old and slow Mac (IIvx, 68030) with System 7.5. We welcome any info about fixes or alternate procedures for other setups.

First, you can delete the libtcl_qsmackfe.dll file. That is for Windows only.

Next, take the file "qsmackfe.cfg.quickstart", put it in the Preferences folder in your System Folder, and rename it "QSmack Preferences". This is different from the way the frontend config file is handled on other platforms! The frontend config file for the Mac version must always have that name, and it must always be in that folder. You cannot specify the config file "on the command line", because there will be no command line.

("qsmackfe.cfg.quickstart" is a pretty bare-bones config file, but that's what we want for the inital run. Later you can experiment with more complex config files like the examples in "qsmackfe.cfg.highres" and "qsmackfe.cfg.lowres".)

Now, we'd like to just be able to double-click something to launch the frontend. Unfortunately Tcl's UNIX roots are showing a little here, and it's not immediately obvious how to set this up. Fortunately, though, the mad hackers of C9 have blazed a trail for you!

It turns out there are actually two (at least) ways to handle this. Have a look at the options below and choose one that tickles your fancy; you can either download a new file or two, or make the changes yourself.

Method #1 is to create a copy of Wish (the Tcl interpreter) that has the script embedded in it. This is pretty easy, but it has the downside of taking up an extra 45k of disk space compared to the other method, since it creates a whole `nother Wish application dedicated to running the frontend. If you're game for a 62k download, you can download such an application now: QSmackFE, BinHex-encoded. This assumes you're using Tcl8.0/Tk8.0. If you're not, or you'd rather skip the download, or if you need to recreate this application after making changes to the script, you can create the application yourself.

Method #2 is to make the script itself double-clickable, so that double-clicking the script will start Wish and launch the front end. If you want to go this route, you will need to download (62k total) BinHex-encoded new versions of qsmackfe.tcl and Wish 8.0 (assuming you're using Tcl8.0/Tk8.0). Replace the previous copies of the frontend script and your Wish application with these two files that you download. Now you can double-click on the script to start it up. (You can still edit qsmackfe.tcl using your favorite text editor, if you need to.) If you'd rather skip the download, or if you're not using Tcl8.0/Tk8.0, you can make the changes yourself.

Both of these methods only allow one QSmack front end running on your Mac at any given time. One is all you need though! Double-click and start that baby up.

One final note: the "nslookup" command is not currently available in the Mac version. Adding it would require taking the C code from the download package (tcl_qsmackfe.c) and recompiling the Tcl source to include it as a Tcl extension to implement "gethostbyaddr". The C9 Mac users don't currently have the compiler tools to do this and would rather not bother. But if you're a Mac hacker and you wanna take a shot at it, be our guest.