Abstracts from files in info-mac/dev/src as of Sun 20 Mar 2005 #### BINHEX ad-invert-shapes-101-c.hqx **** From: joe@clipper.cb.att.com Date: Sat, 9 Oct 93 15:44:10 EDT Subject: InvertShapes 1.0.1 This is version 1.0.1 of the InvertShapes AfterDark screensaver module. This version corrects the "random" feature and the credit string. Source code is included. - j.t.judge #### BINHEX adobe-premiere-developer-c.hqx **** Date: Tue, 5 May 92 14:39 +1200 From: "Lawrence D'Oliveiro, Waikato University, Hamilton, NZ" Subject: info-mac/tech/adobe-premiere-developer.hqx The following archive includes information and sample code (in MPW C and assembler) for writing your own add-ons for Adobe Premiere. You can create custom visual transition effects, video filters, and audio filters. I found this originally posted on AppleLink by Randy Ubillos, author of Premiere. Lawrence D'Oliveiro, Waikato University, Hamilton, New Zealand. ldo@waikato.ac.nz -------------------------------------------------------------------------------- #### BINHEX aiff-dsp-framework-21-c.hqx **** Date: Sat, 4 Feb 1995 11:36:46 -0500 From: bdenckla@husc.harvard.edu (Ben Denckla) Subject: AIFF_DSP: An AIFF File DSP Programmer's Framework in Portable C AIFF_DSP: An Audio IFF File DSP Programmer's Framework in Portable C available via ftp at "ftp.cs.jhu.edu" in pub/dsp Note for users of previous versions of AIFF_DSP: The only change in this version is that unlike v21, it includes the correct version of interface.c, which was correct in v20 but not in v21. This old version of interface.c did not compiler under newer versions of Think C. Introduction This archive contains code which provides a framework in which user-written C functions which process the data in Audio IFF (AIFF) files are called. The framework contains main() and deals with all aspects of AIFF file handling, allowing the user to concentrate solely on the development of his/her DSP algorithm. For those readers who are familiar with Tom Erbe's "SoundHack" program for the Macintosh, this framework is similar to that program except for the fact that source is available and portable and you can add your own processing functions in a very modular, simple way. Theory of Operation The framework calls three user-written functions in the course of its execution. First it calls a user-written initialization function, which would typically do things like set up lookup tables. Then it repeatedly calls a user-written processing function, each time placing a new block of data in the buffer. When the AIFF file has been exhausted of data, it calls a user-written termination function, which would typically do things like free memory which had been malloc()'ed for a lookup table. Though the framework was originally designed for the processing of AIFF files where an AIFF file is taken as input and an AIFF file is made as output, through the setting of user-defined variables, the framework can be made to take no input or make no output. The mode in which no input is taken is useful for tasks such as the generation of AIFF files by algorithmic means. The "no output" mode is mode is useful for tasks such as the analysis of AIFF files, where the analysis output goes to the screen or to a non-AIFF file. The three user functions and the the two user variables above are typically defined in their own .c file. This file contains a global structure which contains the two variables and pointers to the three functions. This quintuplet defines what I call a "plugin." The only contact with framework code that needs to occur is to "register" a plugin. This consists of adding the name of the plugin to lists of other plugins in "plugin_specific.c". All of these plugins are available at runtime and one is chosen by the end user. Much more could be written about how to use the framework but time constraints compel me to merely direct the reader to the included examples of processing functions and to the source code for the framework itself. Portability When THINK_C is defined (which happens automatically when that compiler is being used), the program compiles to an executable that does some Macintosh-specific things. Otherwise, a generic text-mode program is created. This generic mode has been tested successfully on the following UNIX systems, using gcc except where noted: OS: SunOS 5.3 (UNIX System V Release 4.0) machine type: sun4d sparc OS: HP-UX A.09.03 machine type: HP 9000/712 OS: ULTRIX 4.3 machine type: RISC (DECstation 5000/240) OS: NeXTStep machine type: NeXT OS: OSF/1 v2.0 machine type: Alpha (using native DEC cc) On little-endian machines, audio data with a 16 bit sample word size is automatically byte-swapped before delivery to the user-written processing function. It is byte-swapped back again before being written to the output file. On Macintosh compilers other than Think C, there may be some small modifications needed to the code in "Think_C.c" that sets the file type to 'AIFF'. Other than that, if you just #define THINK_C, code should work fine on other Macintosh compilers. The code has been tested successfully on Think C 5.0 and Symantec C++ 7.0. Miscellany If you would like to receive email notification of further updates to these programs, please send mail to my address below. I am also very interested in hearing what you plan to do or have done with my code, so please drop me a note for that reason as well. This project was funded in part by the Ford Foundation's project to provide grants for undergraduate research at Harvard University. Ben Denckla bdenckla@fas.harvard.edu February 4, 1995 #### BINHEX angry-face-cursor-104.hqx **** From: Furnesss@northcentral.k12.ia.us Subject: Angry Face Cursor v1.04 Angry Face Cursor v1.04 This is my fourth attempt for making shareware. This will replace your normal boring black cursor with this nice icon of an angry face. I hope you like these cursors I am making and have made in the past. This should be compatible with any Mac, I have tested it on a variety of different macs like Power Mac 5200, 5260 and also on LC 575-580's. A couple of my friends have also tried it on their machines. If you come accross any problems hust let me know at FurnessS@northcentral.k12.ia.us Disclaimer: If anything is to happen to your Mac while you are using thisŠwellŠtoo badŠbecuase you cannot blame me. You use this at your own risk. I have not had any problems with it, so I doubt that you will either. This is $3 shareware, I don't think that is too much to ask, I am going to need every little dollar to keep making stuffŠŠŠif you feel generous you may pay more but I ask that you atleast please send the $3. You can send it to: Sylvan J. Furness 409 Main Street, P.O. Box 51 Hanlontown, Iowa 50444 The only reason I am putting a little fee on this piece of software is because it took alot of time to make. Sylvan Furness #### BINHEX app-launcher-cpp.hqx **** From: Andrew Nemeth Subject: AZN_AppLauncher New version of AppLauncher follows: - Bugs fixed. - CW 7 compatible - New features added to TAELaunch C++ class. Applauncher is a native PPC Macintosh application and source code which shows how to launch, manipulate and quit remote applications. Based on Peter Lewis original Pascal code. (Original sources also included). Andrew Nemeth aznemeng@zeta.org.au 24 Oct 1995 Blue Mountains, Sydney Australia #### BINHEX append-ditl-demo-c.hqx **** Date: Fri, 18 Nov 1994 14:23:25 -0500 From: Marty Wachter Subject: Demo of Dialog Manager calls in System7 This shell was created to demonstrate the correct way to use AppendDITL(), CountDITL(), and ShortenDITL() Dialog Manager calls in System7. This shell also show how to corectly use the WindowFont for drawing text in a dialog This demo creates a sample dialog which contains a checkbox control using the WindowFont. This checkbox appends and shortens the dialogs DITL. #### BINHEX apple-event-interface-plog.hqx **** Date: Mon, 19 Oct 1992 08:29:16 +0100 From: Stephen.Cooper@csd.uu.se (Stephen Cooper) Subject: AE Interface.pl v1.01 This code works only with LPA MacProlog 4.5 or better. AE Interface.pl is the source code for a prolog interface to Apple events. This program allows retreiving succesive answers to prolog goals and translation of the answers to e.g., HyperTalk commands. The answers are in text format, perfect for working with HyperCard or SuperCard. ----------------------------------------------------------- Stephen Cooper +46-(0)18-18 10 73 (voice) Computing Science Dept +46-(0)18-52 12 70 (fax) Uppsala University, Sweden stephen@csd.uu.se #### BINHEX application-menu-addition-as.hqx **** Date: Mon, 11 Oct 93 15:33 +1300 From: "Lawrence D'Oliveiro, Waikato University, Hamilton, NZ" Subject: info-mac/UserInterface/appmenu-additions-as.hqx Hi. Enclosed is a small update to my Application Menu scripting addition for AppleScript. The code is the same as before, but I have changed some resource attributes to try to avoid occasional crashes that could occur with the previous version. Please replace your current copy of the archive with this version. Lawrence D'Oliveiro Computer Services Dept University of Waikato Hamilton New Zealand -------------------------------------------------------------------------------- #### BINHEX arrow-cdef-c.hqx **** From: "David J. Hay" Subject: ArrowCDEF Date: Wed, 30 Mar 1994 21:24:04 -0700 (MST) Please find attached to this message a Binhexed copy of my ArrowCDEF. This is a CDEF I wrote for implementing an up-down arrow similar to those found in the color picker. It supports the ability to use any PICT resources to draw the arrow, so you can make the arrow look however you like. Included is a Think C 5.0.4 project for the CDEF and a program to test it. The test program includes a resource file with a B&W set of arrows and a color set of arrows. -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | David Hay _-^-_ Remember, always pillage | | hay@cs.colorado.edu / o o \ BEFORE you burn | |--------------------OOO---'---U---`---OOO--------------------| #### BINHEX ars-magna-ii-c.hqx **** Date: Fri, 24 Sep 1993 11:47:34 -0800 From: mxmora@unix.sri.com (Matthew Xavier Mora) Subject: Ars Magna II --========================_7523546==_ Content-Type: text/plain; charset="us-ascii" Enclosed is a new version of Ars Magna called Ars Magna II. I recomplied Mike Morton's ars.c code to use think's console library. This makes it a little more compatible but its still just a C program with command line interface. I gave it a new signature and icon to keep it separate for the other version. I did this because someone here needed to use ars magna and the old version would trash his screen. Hopefully some one will give it a good interface and make it a real mac program. I just don't have the time. Matt --========================_7523546==_ Content-Type: application/mac-binhex40; name="Ars_Magna_II.sea" #### BINHEX artabrot-11-c.hqx **** From: warnergt@aloft.att.com Date: Tue, 23 Nov 93 21:08:23 EST ARTAbrot - Apple Real-Time Architecture Mandelbrot Program Version 1.1 by George Warner 11/22/93 warnergt@aloft.att.com REQUIREMENTS: 68020 or greater ARTA equipped Macintosh (Quadra 840av, Centris 660av, or Mac with ARTA plug-in board. 1. WHAT IT IS: ARTAbrot is a Mandelbrot program that it uses the AT&T DSP3210 in ARTA to perform the intensive Mandelbrot calculations. 2. SOURCE CODE TOO! Complete source code is provided. For those who would like some sample ARTA source code (which is scarce at the time of this release). The DSP3210 source code is in file mbrot.s. All of the host DSP function calls are in brotcode.c. For those of you considering DSP programming, take a look at the mbrot.s DSP source code. This is DSP3210 assembly code, but it is very much like C code -- one of the very nice features of the DSP3210. Release 1.1 11/22/93 Added support for larger windows, resizable windows, and background processing. Release 1.0 08/23/93 First version. #### BINHEX async-sound-sample-pas.hqx **** Date: Sat, 27 Mar 1993 14:30:39 -0800 From: westrom@unixg.ubc.ca Subject: Pascal source code: async sound production I was trying to get Think Pascal 4.0.2 to play anynchronous sounds (sounds that play while other things are happening). It turns out that you have to remove the [D] Debug compile option or else the machine crashes. On the road to discovering this, I made a 'minimal' anynchronous sound playing program. A sample sound playing program is provided by Jim Reekes in the DTS folder of apple.com, but it is very elaborate and complex. What I offer here is a minimum piece of source code that a beginner could look at to see the essential elements of async sound production, done by-the-book (vol VI of Inside Apple, in this case). -------- Marv Westrom Faculty of Education, UBC Vancouver, B.C. Canada V6T 1Z4 #### TEXT atp-sample-code-c.txt **** From: Stuart Cheshire Subject: Re: Looking for some sample appletalk ATP code... Date: Wed, 2 Sep 92 18:11:08 GMT In article <1992Sep1.033635.28604@sunb10.cs.uiuc.edu> Alex Bratton, bratton@sparc3.cs.uiuc.edu writes: >If you have some sample code (ATP) that opens, registers, and dumps some >data, I'd really appreciate seeing it. This has been bugging me for a while >and I think I need to look at some working code to see what I'm missing. Here is some more sample code, which opens and registers an ATP socket. It is from the Macintosh User Authenticator mentioned in a previous post be me. The code is written for Think C 5. #include #include #include #### BINHEX auto-bin-c.hqx **** From: mxmora@unix.sri.com (Matthew Xavier Mora) Subject: AutoBin (a drag and drop Binhexer with source) Date: Thu, 9 Dec 1993 13:21:47 -0800 --========================_6876772==_ Content-Type: text/plain; charset="us-ascii" Enclosed is AutoBin. Autobin is a program based on dropshell that will binhex any file dropped on top of it. Since I didn't write very much of the actual code, included the source so other can benefit too. (and hopefully modify it and make it better.) Xavier --========================_6876772==_ Content-Type: application/mac-binhex40; name="AutoBin_w=src.sea" Content-Disposition: attachment; filename="AutoBin_w=src.sea" #### BINHEX basic-black-151-c.hqx **** From: Mason Loring Bliss Subject: Basic Black 1.5.1 source release Enclosed is the source distribution of Basic Black version 1.5.1. Please use this in place of the 1.5 source package, as version 1.5 contained a couple of bad errors that weren't caught until after it was released. This version is stable. #### BINHEX bbedit-30-dev-kit.hqx **** From: bbsw@netcom.com (Bare Bones Software) Subject: BBEdit 3.0 Extension Developer's Kit Date: Mon, 17 Oct 1994 19:22:10 -0700 (PDT) The attached StuffIt Deluxe archive contains documentation, interfaces, and sample source code that developers can use to write BBEdit extensions. This updated version features revamped documentation, a new "universal" include file, and information and samples on how to write PowerPC-native extensions. Extensions written with this kit are compatible with BBEdit and BBEdit Lite, version 3.0, and, if properly written, are also backward-compatible with older versions of BBEdit. The extension developer's kit is also immediately for anonymous FTP from ftp.netcom.com, in /pub/bbsw, and from ftp.std.com, in /pub/bbedit. If you have a URL-aware utility such as MacWEB, Anarchie, or Mosaic, you can directly access the developer's kit with one of the following URLs: ftp://ftp.netcom.com/pub/bbsw/bbedit-30-dev-kit.hqx ftp://ftp.std.com/pub/bbedit/bbedit-30-dev-kit.hqx -- Bare Bones Software, Inc. Internet: bbsw@netcom.com %==========================================================================% Rich Siegel Michael Fryar Patrick Woolsey President & CEO Chief Operating Officer Chief Technology Officer #### TEXT blockio-c.txt **** From: "Art Eschenlauer" Subject: Routines that open blocks as filestreams in ThC 5 Date: Sat, 24 Sep 1994 12:31:39 -0500 (CDT) Here's a file to put into /mac/development/sources/snippets on mac.archive.umich.edu. Compress it as you please. /* blockio.c and blockio.h by Art Eschenlauer Routines to open blocks of memory as simple filestreams under ThinkC 5.0.4 Here are some routines to open a block of memory (Ptr or Handle) as a simple filestream (they do not support disk oriented commands like rewind and seek). I wrote these for porting unix software to ThinkC 5.0.4 using the standard libraries. I don't know if they would work on later versions of ThinkC std libraries. Bugs, comments, flames, etc. to eschen@molbio.cbs.umn.edu. Disclaimer: #### BINHEX bob-15-c.hqx **** Date: Sat, 2 Oct 93 23:08:11 -0700 From: tsyang@dec-9.CE.Berkeley.EDU (Tzong-Shuoh Yang) Subject: Bob15.hqx - Bob Programming Language (Think C source) This is the Tinnk C 6.01 version of Bob 1.5. For details, please see article Betz, David. "Your own tiny object-oriented language: C++? Smalltalk? What about Bob? (an interpreter formed from C++ and Lisp) (tutorial)", Dr. Dobbs Journal v16, n9 (Sept, 1991):26 (8 pages). Bob was written by: David Betz P.O. Box 144 Peterborough, NH 03458 (603) 924-4145 Bob is available free of charge for non-commercial use. If you're interested in using Bob commercially, please contact him at the above address. The original source codes are written in Microsoft C and can be obtained by anonymous ftp from ftp.mv.com. Have fun. T. S. Yang (tsyang@ce.berkeley.edu) ================================================================ #### BINHEX brailler-061b-c.hqx **** From: f8dy@netaxs.com Subject: Brailler 0.61 source Date: Tue, 7 Mar 1995 11:47:37 -0500 (EST) Brailler 0.61B is a Braille text editor. You can use it as a brailler-style typewriter (with six keys and a space bar), or you can type in English and Brailler will translate your text into grade 1 or 2 American Standard Braille as you type. Requires system 7.0 or later. Copyright (c) 1994-5, Mark Pilgrim; please read enclose file "GNU General Public License" for licensing details. Version 0.61B includes support for the Drag Manager, the ability to convert non-Brailler text files to grade 1 or 2 Braille when opening them, and many technical improvements. #### BINHEX c-interp-c.hqx **** Date: Wed, 2 Jun 1993 10:15:23 -0600 From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) Subject: C Interpreter Source Code C_Interp.sit contains the complete Think C source code for an interpreter of a subset of C. It is implemented as a subroutine call that can be embedded in any application, making it extremely easy to add scripting to an existing application. Callbacks from the interpreted C code to the calling application can be made. The source should compile without changes on any Unix host as well. See the enclosed documentation for more details. Note: I am not the original author of this code, but I have modified it to create a stand-alone library function. See docs for credits. --- #### BINHEX c-modal-progress-cp.hqx **** Date: Fri, 17 Feb 1995 22:33:00 -0500 From: "graham (g.) heathcote" Subject: CModalProgress class source code Enclosed is source code for a class which implements a progress dialog such as Finders copy dialog. There is a readme and example app. Regards, Graham Heathcote. #### BINHEX calendar-cdef-11-p.hqx **** From: baer@gis.geogr.unizh.ch (Hansruedi Baer) Subject: calendar-cdef-11 Date: Wed, 18 May 94 22:23:07 +0200 Hansruedi Baer Department of Geography University of Zurich Phone: ++1 257-5256 Winterthurerstrasse 190 Internet: baer@gis.geogr.unizh.ch CH-8057 Zurich CalendarCDEF 1.1 This simple control definition function lets you choose a date from a calendar. Source code (THINK Pascal) and a documentation (Word) is included. CalendarCDEF 1.1 is public domain. Questions and comments to: Hansruedi Baer Department of Geography University of Zurich Winterthurerstrasse 190 CH-8057 Z u r i c h e-mail: baer@gis.geogr.unizh.ch ---------------------------------------------------------------- #### BINHEX calendar-mdef-09b.hqx **** From: (Cristiano Verondini) cverond@dida05.deis.unibo.it Subject: CalendarMDEF 0.9 beta CalendarMDEF version 0.9 beta (c) 1996 by Cristiano Verondini. All rights reserved. CalendarMDEF is an MDEF useful to enter a date using only the mouse. Only few lines of code are needed to insert it into an application, and it can save you a lot of keystrokes. The documentation contains detailed instructions on how to use it. This is a demo, but you can have a full version for free. Read the documentation. #### BINHEX canimcursor-10b4-c.hqx **** From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy) Subject: /source/c/canimcursor-10b4.hqx Date: Mon, 14 Sep 92 13:56:45 EDT This Compact Pro archive contains the source code for CAnimCursor, a public domain Think C 5 class that provides easy, flexible handling of animated cursors. The Think Class Library is not required. This is the fourth beta. (It's quite stable and hasn't crashed in months, but I'm still calling it beta because of a minor anomaly which I haven't resolved yet.) CAnimCursor uses an 'acur' resource to determine which cursors to display; the animation speed and a few other variables are changed by method calls. Both color and B&W are supported. The interface can be as simple as initializing the object with the resource ID of your 'acur', and calling startAnimating() and stopAnimating() at the appropriate times. CAnimCursor's best feature is that it is very good about doing the Right Thing (tm). For example, if your 'acur' points to color cursors and the Mac is B&W, it will pull the B&W bitmaps out of the 'crsr's. If you call startAnimating() twice, the second call will have no effect. And so on. CAnimCursor will not call SetCCursor at interrupt time, since that trap relies on the heap being good, and will fail if the interrupt occurs during a memory manager reorganization. This does not happen often, but one crash is one too many. Also included are CQixableCursor, a subclass which optionally draws a little 'Qix' over your cursors; subclasses of three TCL core classes which will prevent the cursor from being reset each time through the event loop; a short sample subclass; and four sample cursors, including a smooth beachball and a color spinning earth. (I stole the earth from Stefan Bilaniuk's free extension "Earth," also at sumex-aim. I feel no guilt because I guess he stole it from someone else ;-), and because I colorized all 26 frames by hand, phew!) Extensive (indeed, ponderous) comments explain proper usage, and there are even one or two comments in the code itself. Plus, it comes with a toll-free technical support number, which I figure is a pretty good deal for something in the public domain, eh? #### BINHEX capitalizer-c.hqx **** From: (Rui Campos) rufus@ici.net Subject: Capitalizer BBEdit Extension Source Code What it is: This is a little BBEdit extension that I wrote for myself, and I'm giving it away for free! I used the sample extension called "Capitalize" that came with BBEdit, and made it a little more flexible. Now it will handle more capitalization chores. What it does: * Have you ever wanted to change a whole block of text from uppercase to lowercase? * Have you ever wanted to quickly change a title to an appropriate title case? * Have you ever needed to uppercase a bunch of words at once? Have you? And did you really want to re-type all that stuff yourself? No? Well then have I got an extension for you! The Capitalizer will let you do all of that, and a little more! Capitalizer is a utility that allows you to change the case of text in a selection in various ways. You can change all selected text to: * UPPER CASE * lower case * Title Case * Sentence case. If you're like me, and I know I am, you'll just love it! Written by Rui Campos How to contact me: e-mail: rufus@ici.net web: http://www.ici.net/cust_pages/rufus/rufus.html #### BINHEX ccontextual-menu-10.hqx **** From: dair@dircon.co.uk Subject: CContextualMenu 1.0 CContextualMenu is a utility class that provides Contextual Menus for PowerPlant applications. It uses the Contextual Menu Manager if it's available, and the normal Mac OS Menu Manager if not. This allows applications to support Contextual Menus under both Mac OS 8 and System 7, without having to write additional code. CContextualMenu requires Metrowerks CodeWarrior and PowerPlant. -dair #### BINHEX cd-icon-killer-100-asm68k.hqx **** From: Peter N Lewis Subject: source/asm68k - CDIconKiller 1.0.0 Date: Sat, 18 Jun 1994 05:32:17 +0800 --========================_20335185==_ Content-Type: text/plain; charset="us-ascii" CDIconKiller 1.0.0 Copyright 1994 Quinn & Peter N Lewis Install this INIT to suppress custom icons on CD-ROM drives. This tends to speed up your CD-ROMs by a factor of about a zillion. Caveats Only works for Apple's CD-ROM driver. Works under System 6 :-) Warning: This program was written in 4 hours. Quinn Peter N Lewis Version History 1.0.0 05:30 18 June 1994 Original Release --========================_20335185==_ Content-Type: application/mac-binhex40; name="CDIconKiller_Source.sit" Content-Disposition: attachment; filename="CDIconKiller_Source.sit" #### BINHEX cdef-fjci-fb.hqx **** Date: Mon, 3 Oct 94 13:20:03 CDT From: bobs@saintjoe.edu (Bob Schenk) Subject: [*] CDEF-FJCI (two control definitions with source code) Attached is CDEF-FJCI, a folder containing two control definitions with source code in FutureBASIC, the only serious BASIC for the Macintosh. One is a simple up/down arrow, the other a five-icon button. Included is a demo which shows how they work and also puts in a plug for two CD-ROMs of typefaces I designed. These files may be included on CD-ROM collections as long as no changes are made to them. Robert Schenk bobs@saintjoe.edu PS The FJCI stands for "From Jasper County Indiana." #### BINHEX cdef-template-10.hqx **** From larson@BASE.CS.UCLA.EDU Tue Mar 14 10:41:22 1995 Date: Tue, 14 Mar 1995 10:41:13 -0800 (PST) From: Chris Larson Subject: CDEF Template 1.0 : CDEF template in C Enclosed is the first public release of a skeleton for constructing CDEF resources in CodeWarrior C; source is, obviously, included. Info-Mac Moderators: This probably belongs in the /dev/src directory. Feel free to include this on any CD you choose. --Chris _______________________________________________________________________________ Chris Larson -- Amateur Macintosh Geek, CoBase Research Assistant Internet: larson@kingston.cs.ucla.edu (insert disclaimer here) #### BINHEX cdev-stub-cw.hqx **** From: Gordon Watts -- U of Rochester Subject: FWD: cdev stub for CodeWarrior Date: Tue, 15 Mar 1994 8:38:30 -0600 (CST) From: SMTP%"cwarrior@netcom.com" 15-MAR-1994 07:22:16.60 To: GWATTS CC: Subj: cdev stub for CodeWarrior Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="========================_27555112==_" Date: Tue, 15 Mar 1994 07:25:59 -0500 To: cwarrior@netcom.com From: joe zobkiw Subject: cdev stub for CodeWarrior Message-Id: <9403150724.aa05119@gateway.datawatch.com> Sender: owner-cwarrior@netcom.com Precedence: list Reply-To: cwarrior@netcom.com --========================_27555112==_ Content-Type: text/plain; charset="us-ascii" This next one is a stub that will allow you to write a cdev in CW (even though it currently does not allow you to use an id that is a negative.) The code is commented well enough to understand what is going on. --========================_27555112==_ Content-Type: application/mac-binhex40; name="Warrior_cdev_stub.sit" Content-Disposition: attachment; filename="Warrior_cdev_stub.sit" #### BINHEX cellusoft-graphics-demo-c.hqx **** From: kenlong@netcom.com (Ken Long) Subject: Cellusoft-sprite-demo-c Date: Mon, 10 Jan 1994 18:12:38 -0800 (PST) Hi there, Mac Gifties! This file is Think C 5.0.4 source for the Cellusoft Graphics Demo, by Tony Small, author of the game "Quagmire." It demenstrates color 'PICT' clipping to get sprites and animate them over a color background, using offscreen pixmap maniulation. -Ken- #### BINHEX cellusoft-graphics-p.hqx **** From: kenlong@netcom.com (Ken Long) Subject: Cellusoft Graphics Pascal Date: Sun, 20 Feb 1994 20:45:55 -0800 (PST) Tony Small's Cellusoft Graphics Routines in Pascal. Puts up a window, adds a color 'PICT' for background, then animates his "walking eyes" over it, from left to right. -------------------------CUT HERE------------------------------- #### BINHEX change-type-creator-16-c.hqx **** From: markf@post.QueensU.CA (Mark Fleming) Subject: ctc v1.6 src Date: Wed, 19 Jan 1994 18:23:16 -0500 --========================_23531304==_ Content-Type: text/plain; charset="us-ascii" Enclose is source code for: This is a greatly modified version of V1.4 and v1.5 of ctc type convert already in the Info-mac archive. ctc V1.6 - File Typer and End of line fixer (Supports auto suggestion for TIFF, BMP, EPSF and options to only convert creator or type of file) NOTE: TranslatorPackage.sit provided in separate posting contains the compiled version. <<<<<=- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =-=-=->>>> Mark Fleming, Computing & Communications Services Queen's University at Kingston Ontario, Canada, K7L 3N6 E-mail: markf@post.queensu.ca AppleLink: CDA0448 Phone: (613) 545-2039 Fax: (613) 545-6798 ** The Author of NetDoctor, A Lab and Network Maintainer Package ** --========================_23531304==_ Content-Type: application/mac-binhex40; name="ctc_v1.6.src.sit" Content-Disposition: attachment; filename="ctc_v1.6.src.sit" #### BINHEX chat-11-pas.hqx **** Date: Sat, 12 Dec 1992 12:00:45 +0800 From: Peter N Lewis Subject: source/pascal/chat-110.hqx This is the pascal source for Chat 1.1.0, a background only application that lets Macs with MacTCP 1.1 serve as a very primitive IRC. The source is very simple, only around 500 lines, and could be used as example code if you wanted to write your own MacTCP server. Chat is free and should run under System 6 or 7, and requires MacTCP 1.1 or later. Hope its useful, Peter. Chat 1.1.0 Copyright 1992, Peter N Lewis #### BINHEX chef-11-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Chef 1.1 (source code) Date: Sat, 26 Feb 1994 23:31:07 -0500 (EST) Chef is a small utility to convert text files to mock Swedish, like the Swedish chef on the Muppets. Version 1.1 supports RTF files and fixes several technical bugs. This will be the last version of Chef; all future enhancements will be part of the larger text conversion program, Dialectic. Supports drag and drop of any number of text files of any length. This archive contains complete THINK C source code, project files, and resource files. Application also available; check ftp sites or e-mail f8dy@netaxs.com. Finger f8dy@netaxs.com for complete program list. Copyright (C) 1994, Mark Pilgrim. Please read enclosed file "GNU General Public License" for licensing details. #### BINHEX chess-cpp.hqx **** From: Lloyd Wood Subject: Chess++ source code Date: Mon, 2 May 94 21:25:25 BST This is the source code to Chess++, a freeware mac chess-playing program. I am not not the author. Steve Bushell can be contacted as -- L. _____________________________________________________________________________ L.H.Wood@student.lut.ac.uk Email me for a copy of the Mac screensaver FAQ #### BINHEX clut-fade-131.hqx **** From: MarkWomack@aol.com Subject: clut_fade 1.3.2 This version fixes bugs, one of which would significantly slow down copybit operations after fading the monitor. This is a library of screen fading operations which can be used to make your games more professional looking. Not only does the clut_fade library let you fade to and from black, but it also provides routines to fade to and from a specific color or a specific clut. It also provides some control over which monitors are faded. Demo application, library, and source code are included. C and Pascal. fade_to_black function written by Jonas Englund, modified by Mark Womack for multiple monitors. fade_to_clut function written by Macneil Shonle. Pascal version written by Christian Franz. #### BINHEX combo-box-12-c.hqx **** From: (Steve Dwire) steve_dwire@linq.pcci.edu Subject: ComboBox Source 1.2 This is the source code for version 1.2 of Pensacola Christian College's freeware ComboBox external area for 4th Dimension. The following changes have been made since the 1.1.1 release: o Enabled the Paste menu item when appropriate. o Made sure that the selected item in the list box always stays in sync with the text in the editable area. o Closed the list box window on the first idle event after the layout window is moved. o Used the black & white PICT resource for the popup-indicator button on display devices having four (4) or fewer colors. o Eliminated the last vestiges of the dead scroll bar problem. o Allowed string arrays to be used for CB_FillLst() rather than requiring all arrays to be of type text. o Added CB_GetContRef() function to make ComboBox compatible with Foresight Technology's "Container" and Automated Solutions Group's "Habitat." o Added DrawBox flag to CB_DefSetFlags() and CB_SetFlags(). o Made the list window show up in the right place (above vs. below the area) even on monitors other than the main monitor. o Started using the real arrow cursor. o Corrected a bug in which a compiled database would execute the ComboBox's script twice when a button was clicked, considering it unmodified both times. o Fixed a bug where the text-entry area did not reflect the new size after the font was changed. This archive contains all C source code files, resource files and Metrowerks(R) CodeWarrior(tm) 9 project files necessary to compile and build version 1.2 of the ComboBox external area for 4th Dimension. These project files use a beta-level release of ACI's Platform- Independent Extension-Authoring Kit. You will need to acquire this kit for yourself in order to build the ComboBox extension. Contact your local ACI representative for information on obtaining this kit. #### BINHEX conics-cpp.hqx **** From: aidan@xanadu.kublai.com (Aidan Cully) Subject: MacConics Source Code - C++ This is the full source code to the Conic sections program, written in C++. #### BINHEX control-panel-094-c.hqx **** From: kenlong@netcom.com (Ken Long) Subject: ControlPanel-0.9.4.sit.hqx Date: Wed, 27 Jul 1994 21:34:57 -0700 (PDT) Folks: I get to postin' here and there and forget where I put everything. I scoured a.s.m., merit and sumex and found this NOT! So here it is. will post to a.s.m., too. Author: Ken Worley. Type: Think C 6.0.1 project. Content: Source for a sample control panel, sample INIT and sample patch. Built examples of each. Additions: Ken Long added Think C 5.0.4 projects, to make it easier on the po' folks. I tried these and the CP and INIT *both* show their icons at startup. The CP won't open unless loaded, but has nice features for a shell. I also tried building all three and there were no problems with that. -Ken- -------You are not Morg. You are not Imorg. What are you?----------- #### BINHEX control-panel-tester-70-c.hqx **** Date: 04 Mar 1993 13:07:09 -0500 (CDT) From: Evan Olcott Subject: Cdev Tester 7.0 /*************** * * System 7.0 Control Panel tester * * )1993 Triplo Software * ****************/ The Control Panel tester is a source code file that you can use to test your cdev code resource files under the THINK C 5.0 environment with little difference from the operating system. Any comments, questions, bugs, etc. please report them to: Triplo Software c/o EOLCOTT@vx.cis.umn.edu If you think I expect money from this, you're crazy. It's freeware, I guess. Have fun. Just credit me where you think it's due. ----------splice 'n' dice here------------ #### BINHEX control-strip-shell-c.hqx **** Date: Fri, 18 Nov 1994 14:21:48 -0500 From: Marty Wachter Subject: CSShell is a sample Control Strip Module project CSShell is a sample Control Strip Module project which shows you how to use a popup menu in a Control Strip Module. The project is a MetroWerks CodeWarrior file created using CW Release 4. #### BINHEX controls-gh-cdefs-11-c.hqx **** From: grhowes@students.wisc.edu (Glenn R. Howes) Subject: Controls GH 1.1 submission Date: Sun, 24 Apr 1994 16:20:44 -0600 --========================_11780882==_ Content-Type: text/plain; charset="us-ascii" Enclosed is the updated C code and resources for a pair of control definitions (CDEF's) which I originally released last fall. The controls are a simple slider, similar to the Sound control panel's slider, and a flag identical to that used by the Finder in list views. I'm supplying this so other programmers can easilly include these elements in their own dialogs and windows (they have no direct use for the general public). For an application which uses both, see my recently released Siege Watch 2.0. Changes: The flag control is unchanged (it's already perfect). The slider now implements a solid thumb instead of the default outline dragging. I've also removed the pageup and pagedown control parts. --glenn grhowes@students.wisc.edu --========================_11780882==_ Content-Type: application/mac-binhex40; name="Controls_GH.cpt" #### BINHEX cookie-nshell.hqx **** From: JOhearn@aol.com Date: Fri, 28 Oct 1994 17:02:40 -0400 Subject: A cookie command for the nShell Hi, This is a version of the Un*x cookie command for the nShell. Features: -- Cookies are STR resources and may be changed using ResEdit -- Source Code is included Jim O'Hearn (johearn@aol.com) #### BINHEX copy-bits-demo-31-c.hqx **** From: kworley@fascination.com (Kenneth Worley) Subject: CopyBits Demo 3.1 CopyBits Demo 3.1 is Freeware and may be included on the CD version of the Info-Mac archives. Requires System 7 or later. CopyBits Demo is an example project that gives several examples of using CopyBits to copy pictures both on screen and between offscreen Graphics Worlds and an onscreen window (as well as between GWorlds). It also allows you to experiment with using CopyBits, CopyMask, and CopyDeepMask using different images, masks, and transfer modes. It does all the following things using CopyBits and its variations: 1) Fade an area of the screen to black (using three different methods). 2) Demonstrates "flickering" regular animation vs. smooth animation. 3) Fades one image into another. (and new in v2.0) 4) "Pixelizes" and "depixelizes" an image (an animation effect where the picture ends up in a very blocky representation of the original). 5) Blurs an image. 6) Flips an image horizontally or vertically. 7) Applies fading effects to the entire screen rather than just part of a window. (and new in v3.0) 8) Slides one image onto another from any of the four major directions. 9) Imposes one image onto another inside a growing circle, or outside a shrinking circle. 10) Demonstrates several of the techniques on the full screen rather than just part of the window. 11) Demonstrates font anti-aliasing using CopyBits with the ditherCopy constant added to the transfer mode. All the code and the project file to build the demo app is included (Metrowerks CodeWarrior C). The code is well documented. Written by Kenneth Worley - KNEworley@aol.com #### BINHEX copy-paste-tools-11-p.hqx **** From: (Julian Miller) julian@sierra.net Subject: CopyPaste Tools Sourcecode 1.1 These source code examples are for creating CopyPaste Tools. CopyPaste is an extension that can be found on shareware sites on the net. CopyPaste adds more clipboards and clipboard tools to the Mac. CopyPaste Tools are actually FKey coderesources created with MCW or any language. These Fkey/code resources are what we use in CopyPaste as tools to work on the clipboard contents. Now you can use these examples to make new tools and install them in CopyPaste. Add new abilities to the Mac with CopyPaste and tools that you create. We would enjoy seeing your creations. Feel free to send them to one of us so we can add them to this library of FKey source code examples and perhaps include some of them in the next version of CopyPaste. Place clipboard text or picture processing at users fingertips. -/\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -\/ Julian Miller -/\ Script Software International -\/ (916) 546-9005 Voice -/\ julian@sierra.net -\/ http://www.svr.com/scriptsoftware/ -/\ Programming, Consulting & Web Work -\/-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Check out our popular shareware clipboard utilitly CopyPaste at http://members.aol.com/copypaste1/index.html choosen by MacUser as the utility of the year 1996 http://www.zdnet.com/macuser/mu_1096/handson/shareware.html also see the MacWeek article about CopyPaste at http://www.zdnet.com/macweek/mw_1021/news_copypaste.html #### BINHEX core-class-library-11-cpp.hqx **** Date: Fri, 16 Sep 1994 12:12:29 +0200 From: msenecla@disunms.epfl.ch (Martin Seneclauze) Subject: CCL_1.1.cpt.hqx CoreClass is a class library for C++ developers. It offers a solid base to develop advanced class systems: - Support for developing complex object structures: multiple linked lists, tree linked lists logical connections, etc... - A message system to send/receive commands into multiple linked list structures, with filters. - A basic error tracking system. - A system for duplicating objects with various heritage levels. CoreClass is very easy to work with, and does not rely on a particular OS, it can be compiled with a regular C++ compiler (the compiler does not have to support "templates" or "exceptions"). #### BINHEX cout-p-strings-cpp.hqx **** Date: Sat, 8 Jul 1995 12:13:16 -0500 From: s-bytnar@uiuc.edu (Steven Bytnar) Subject: C++: cout << (p-strings) Hi, This is c++ source code that demonstrates how to override any output stream so that it is possible to easily output p-strings that the Macintosh Toolbox uses excessively. The code included compiles under CodeWarrior, but should really be compatible with any c++ compiler in existance. --Steve #### BINHEX cpreferences-10-cpp.hqx **** Date: Tue, 5 Jul 1994 21:13:02 -0700 (PDT) From: Spencer Low Subject: CPreferences 1.0 - Class for CodeWarrior PowerPlant CPreference Class 1.0 --------------------- by Richard A. Bray President Compu-Phobic, Inc. AOL: CompuFobic I (that's me, spencerl@crl.com) am *NOT* the author of this class. This is a simple C++ class for implementing preference files with CodeWarrior's PowerPlant class library. Here's an exerpt from the docs: This class was created to simplify the creation of preference files for an application. The object is very general and simple to use. When MW C++ supports templates, I will rewrite the class to support them. This will allow an easy way to create multiple preference files for applications that need them. Use of CPreferences: 1. Add "CPreferences* mPrefs" to your application class. 2. Add this line to your constructor. mPrefs = new CPreferences('CPI6', "\pTextStreamer 3.0 Prefs"); // 'CPI6' is the creator of the file. // "\pTextStreamer 3.0 Prefs" is the name of the file. 3. Add this line to your destructor delete mPrefs; 4. In order to access the data in your data structure, you will need to add accessor functions to CPreferences. In the next version I will also include methods for using a Preferences dialog. #### BINHEX crooked-mouse-10-c.hqx **** From: f8dy@netaxs.netaxs.com (Mark Pilgrim) Subject: Crooked Mouse 1.0 (source code) Date: Sun, 14 Nov 1993 03:11:39 -0500 (EST) Crooked Mouse is a fun little INIT which will cause your mouse to move at an angle 45 degrees counterclockwise from the angle you moved it. This INIT is free and is distributed under the GNU General Public License; this archive contains complete THINK C 6.0.1 source code and project files for the INIT. If you do not have FTP access, e-mail the author for a copy of the INIT, the source code, or a list of other programs by the same author. The address is f8dy@netaxs.com. This code demonstrates the basics of writing and installing a VBL, and the manipulation of undocumented low-memory globals. This code should work under any system, with any monitor, on all Macintoshes. Please report any bugs/comments/suggestions to f8dy@netaxs.com. Crooked Mouse 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group. #### BINHEX ctb-tool-c.hqx **** From: peterc@gnu.ai.mit.edu (Peter Creath) Subject: CTB Connection Tool C source Date: Sun, 20 Feb 1994 04:52:41 -0500 --========================_6967280==_ Content-Type: text/plain; charset="us-ascii" Here is the skeleton code for a Communications Toolbox connection tool. It's fairly well documented and describes what needs to be implemented to make it fully functional. Note: I am the author. --========================_6967280==_ Content-Type: application/mac-binhex40; name="Connection_Tool_=.sit" Content-Disposition: attachment; filename="Connection_Tool_=.sit" #### BINHEX curl-push-button-24.hqx **** From: hsoi@eden.com Subject: CURLPushButton 2.4 - a PowerPlant class A Metrowerks PowerPlant inherited class geared towards helping your application become Internet-savvy. It allows you to put clickable buttons in places (e.g. your About box) that will look like a URL in a web browser...click on the URL and go right to there! Great for listing the web page for your software, the email address for contact/support, the ftp site where users can get updates or whatever you want! You list the text, they can see it, copy it down, whatever... and then just click and visit it. VERY HANDY!! VERY COOL!! The class is even set up that the text of the button can say one thing but then still visit the URL. For example, the About Box displays your name and you click on it and it visits your personal web page or something. Point is, the button can list the URL text or not...it's a flexible class. There is a demonstration application included in the archive to help you see how it works as well as help and tips for implimentation. Furthermore there is a CTYP file that you can use to aid in the editing process (for use with Metrowerks Constructor). For complete information, please read the README file enclosed in the archive. Thanx, and enjoy! John C. Daub Hsoi's Shop #### BINHEX curses-c.hqx **** From: ROBERT@MASTER.UCHICAGO.EDU Subject: curses.sit Date: Wed, 1 Jun 1994 3:02:21 -0500 (CDT) Source code for an implementation of curses for Macintosh (using Think C) and MSDOS. Curses is a Unix subroutine library for managing text screens. This is a fairly complete implementation that should make it possible to port curses apps to the mac without too many changes (termcap stuff isn't supported, though). See enclosed readme files for more details. This is unsupported public domain code. * Robert Zimmerman * robert@master.uchicago.edu [file curses.sit.hqx:] --------------------------------------------- #### BINHEX custom-new-cp.hqx **** Date: Sun, 04 Dec 1994 00:32:51 -0500 From: pottier@fregate.ens.fr Subject: Re: [Source] Here's my own operator new for CW Recently I rewrote my own implementation of the new and delete operators (under CodeWarrior 4.5). My own implementations have the main two following advantages over the standard ones: - They can take memory from the temporary zone if the application heap is full - They release memory to the OS when it isn't needed any more I like this behavior better than the standard one, because it allows me to give an average-sized heap to my application and yet still be able to handle big tasks requiring unusual amounts of memory. I thought I'd share my code with the rest of the world, so here it is. I have binhexed it to preserve the font settings (it's more than 80 columns anyway). Let me know if you think the idea can be improved, or if you have good reasons why it isn't a good idea! Cheers, Francois Pottier pottier@dmi.ens.fr #### BINHEX cverscaption-14.hqx **** From: hsoi@eden.com Subject: CVersCaption 1.4 - a PowerPlant class A Metrowerks PowerPlant® inherited class that automatically displays an application version string (e.g. in the About Box). This string is taken from the 'vers' resource, so it always displays the correct number automatically. Never a need to have to change it with each revision to your product, just update your 'vers' as you always have to do... it handles the rest. :-) For complete information, please read the README file enclosed in the archive. Thanx, and enjoy! John C. Daub Hsoi's Shop #### BINHEX cw-cdev-framework-111-cpp.hqx **** Date: Tue, 16 May 1995 12:10:02 -0400 From: chewey@pumpelly.monad.net (Matthew E. Axsom) Subject: CW CDEV Framework 1.1.1 CW CDEV Framework 1.1.1 is just that, an oop framework for creating cdev's in Metrowerks CodeWarrior. It's based on a oop cdev framework that Symantec supplied with its complier. Contains a "ready to compile" 68K CW 6 project that will build a "do-nothing" cdev using the framework. Also includes a commented sample project and source code from which you can build a cdev that actually does something ;) It should enable you to see how to use the framework. Version Info Changes from 1.1 New "Usage Notes" file for FAQ's Added stub cdev code resource to fix problems with multi-segment cdev's using virtual functions. Fixed bugs in error checking Changes from 1.0.1 Updated code to ease porting Symantec OOP cdev projects. Added additional error checking. More comments. Best of all, the framework is freeware. Enjoy! #### BINHEX darth-fader-10-c.hqx **** From: f8dy@netaxs.netaxs.com (Mark Pilgrim) Subject: Darth Fader 1.0 (source code) Date: Sun, 21 Nov 1993 04:24:08 -0500 (EST) Darth Fader will cause your Macintosh to quickly fade all attached screens to black and back when it beeps. This INIT is free and is distributed under the GNU General Public License; this archive contains complete THINK C 6.0.1 source code and project files for the INIT. If you do not have FTP access, e-mail the author for a copy of the INIT, the source code, or a list of other programs by the same author. The address is f8dy@netaxs.com. This code demonstrates the basics of INIT initialization and loading, trap trapping, and advanced gamma work. This code will only work on monitors with gamma -- the Mac II line, and any color Mac with a non-built-in monitor. (It has not been tested on a Color Classic; if anyone has one and feels like testing, please let me know if it works.) Please report any bugs/comments/suggestions to f8dy@netaxs.com. Darth Fader 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group. #### BINHEX dbl-library-p.hqx **** From: kenlong@netcom.com (Ken Long) Subject: DBL Pascal Lib. Date: Mon, 21 Feb 1994 15:01:05 -0800 (PST) //* Posted by Kenneth A. Long *// //* Author's comments follow. *// ----------------------------------------------------------------- David B. Lamkins DBLamkins@aol.com Source code released by David B. Lamkins, Feb. 1994. Here's a collection of Pascal routines that I've developed and used over the years. All of these are for THINK Pascal version 4. Not all of these are production-quality - some parts are only minimally tested. Terms of distribution are followed by a brief contents list: * This software is provided as-is, in the hopes that you will find it useful. * The software is provided without warranty of any kind. * I am releasing this software to the public because I have no intention of further developing it; I will not answer questions regarding this software. * This software is Copyright David B. Lamkins. * I grant permission for you to reuse this software, provided that my copyright is included as prominently as your own, in the form "Portions Copyright 1994 David B. Lamkins." * The Macintosh type/creator signatures used for the programs are registered with Apple Computer, Inc. in my name, and may not be reused. * You may not release derivative programs under their original names of PwrSwitcher, TimeTeller, or LaunchFile XCMD. Brief Contents Agendas Animated Cursor Async Sound Call Chain Checksum CRC Debugger Presence ICON control CDEF sicn control CDEF Pop up menu CDEF Error Signals Fast Bit Vectors Hash Tables INIT Shell Layer Manager IF Levenshtein Matching Short Fractions Submenu Delay Preferences Queues RSRCRuntime Bug Fix SFGetFolder 6 String Lists Transactions Mgr Dialog Utils Pop up Utils Block Zero VM Traps IF David B. Lamkins DBLamkins@aol.com ---------------------------CUT HERE----------------------------- #### BINHEX dcl-ansi-c.hqx **** From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy) Subject: dcl-ANSI (all) Date: Thu, 22 Apr 93 0:45:35 EDT C's method of declaring variables and functions is one of the most confusing parts of the language. Even old pros will double- and triple-check their arrays of pointers. And the pathological cases are truly bizarre: "int(Int(int(Int)))" declares a function that accepts and returns an int, but "int(Int(int(int)))" declares a function that accepts another function, and _that_ function accepts and returns an int. Weird stuff. "dcl-ANSI" lets you type in a declaration, hit a few keys, and see what it means, in plain English. Tell it "int (*x[])()" and it tells you x is "type array[] of pointer to function with undefined parameters returning type int." It's based on the "dcl" program in section 5.12 of K&R, but, as the name implies, it fully understands ANSI. (Well, OK, there are a few limitations. See the readme for details.) And it's public domain. There are two editions of this utility. It was first created as a BBEdit extension, because (1) I like BBEdit and (2) BBEdit provides a particularly nice environment for hacks like this to live in. If you keep BBEdit open while programming, you may prefer this version. Otherwise, you'll probably want to use the second edition, the FKEY, because it's simpler: just select your declaration, hit cmd-C and cmd-shift-9 [*], and the English explanation is in the clipboard, waiting for you to paste it somewhere. This file contains both editions and their complete Think C 5 source code. Suggested archive destination: .../source/c/dcl-ansi.hqx -- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy #### BINHEX debug-window-10-c.hqx **** Date: Mon, 17 Apr 1995 16:57:31 -0700 (PDT) From: Eric Gorr Subject: DebugWindow 1.0 For use by those of us who still like the old style of debugging. Supports multiple debug windows. Independent of CodeWarrior and Symantec C++. See enclosed README for more info. Free! have fun. Eric Gorr egorr@hebb.uoregon.edu #### BINHEX detect-new-volume-cpp.hqx **** From: oleg@ponder.csci.unt.edu (Kiselyov Oleg) Subject: Detect New Volume - Display volume's message-of-the-day Date: Thu, 17 Mar 1994 14:32:46 -0600 --========================_13948252==_ Content-Type: text/plain; charset="us-ascii" What: Detect a new mounted volume and "double-click" at a document/application (if found) at a "standard" location on that volume What for: telling the user (a student) what's new on some particular volume and/or how to use it. The document "clicked" by the present WatchVol program may be a text document about what's new on the volume. Or it may be any application that somehow prepares the student how to use the (file server) volume, whenever the volume is mounted. Hot points: Dynamic (transient) patch of the system: doesn't require restarting the system, gets uninstalled when the application quits. Contents: WatchVol - Application (watchdog) itself Watch MountVol.pi - project and resource files to build it Watch MountVol.pi.rsrc WatchMount.cc - Source code of the main module (C++) launcher.cc - Launches an application-creator given FSSpec of the document/application MountVol init.pi - project to compile an Init (not INIT!) code resource that patches the system on-the-fly MountVol init.c - Source code of the _MountVol interceptor (assembly inlined into a dummy C program) The source code contains enough (I hope) comments to show what a particular piece of code does, as well as some tricks involved Language: Symantec C/C++ 6.0 and built-in Assembler System: System 7.x, uses AppleEvents. Tested on IIsi, IIci, Quadras and Centres. Patching the system: _MountVol system trap is patched when the application starts up. The patch is removed (i.e., the trap is restored to its original state) when the application quits. How to run: place the application into your "Startup Items" folder; the application quits when it receives a "QUIT" event, or when it's in the foreground and any keyboard key is pressed. Note: the source code uses a "standard" environment, see myenv-notify.cpt For completeness, the library and the .h file are included as a separate CompactPro archive. However, they (complete with the source code) can be found at various archive sites under the name 'myenv-notify' Comments to: oleg@ponder.csci.unt.edu, oleg@unt.edu --========================_13948252==_ Content-Type: application/mac-binhex40; name="DetectNewVolume.cpt" Content-Disposition: attachment; filename="DetectNewVolume.cpt" #### BINHEX devils-cubes-101-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Devil's Cubes 1.0.1 (source code) Date: Tue, 14 Dec 1993 18:50:12 -0500 (EST) The Devil's Cubes are a set of four cubes, each painted with four colors with some colors repeated. All four cubes are different. The object of the game is to rotate the four cubes until the top of each Devil's Cube is a different color than the top of the other three cubes, and likewise for the bottom, front, and back of each Devil's Cube. Sound simple? Try it for a few hours. Devil's Cubes 1.0.1 fixes some technical bugs and makes some changes to the icon suite; you may need to rebuild your desktop if you already have version 1.0. This game is distributed under the GNU General Public License; this archive contains complete THINK C source code for the Devil's Cubes application, as well as complete source code for an external application used to set up the game's self-integrity checker. This archive contains both THINK C 5 and THINK C 6 project files. Use whichever one you wish and throw away the other. This code handles, among other things, events, menus, apple events, a prefs file, Gestalt environment checking, asynchronous sounds, hierarchical menus, dialogs, windows, off-screen bitmaps, file management, standard file dialogs, and the soon-to-be-famous "cough to continue" modal dialog filter proc. None of this is very well commented, but feel free to direct any questions to f8dy@netaxs.com. Devil's Cubes 1.0.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group. #### BINHEX diagram-c.hqx **** Date: Thu, 20 Apr 1995 13:10:00 -0700 From: davis@wln.com (Ryan Davis) Subject: DiagramC DiagramC (for the Macintosh, in C) The original version of DiagramC can be found in any alt.sources archive, it is provided in Fortran source code and it works quite well. I translated DiagramC.F to DiagramC.c using MacF2C and MetroWerks 5.5. However, MacF2C does a very good job of converting the source to Compiler independant code; it should work on either Symantec or MetroWerks... I retain the rights to the C version. Future versions will be conversions of the C source, not the Fortran version. It seems like the original author left no copyright or anything, and he seems to hate C, so I don't think he will have a problem with me keeping this version. NOTICE Because this package was compiled using F2C, it will require F2C to recompile. There are two libraries that F2C creates in order to bridge the gap between Fortran and C. These files were simply too big to include in this package. Sorry... I will work on excluding as many of the fortran functions in future versions as I continue the conversion to something readable... FUTURE VERSIONS Future versions of DiagramC will have a drag & drop interface via DropUNIX, a library I wrote to help me convert UNIX file processing source to a Drag & Drop app for the Macintosh. Future versions will also have a Preferences dialog allowing you to set your default controls once and let every file dragged onto the application use them. COST This version of DiagramC is being released as Email-ware (damn I do hate these stupid little *-ware phrases)... If you download this (even if you DON'T USE IT) please email me at: davis@wln.com and tell me that you got it... Thanks... DiagramC (M/C) ©1995 Ryan Davis, Zen Spider Software #### BINHEX dialectic-12-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Dialectic 1.2 (source code) Date: Mon, 4 Apr 1994 19:38:02 -0400 (EDT) Dialectic 1.2 is a general text conversion utility to pass text through a "dialect" filter of your choice. Version 1.2 adds a "convert clipboard" feature, four new dialects, an improved Chef dialect, massive technical improvements, and Balloon Help. This version includes the following dialects: Chef, Fudd, WAREZ, Underwater, Middle English, Pig Latin, Morse Code, Op, and Rot-13. Supports drag and drop of any number of text, RTF, or Teachtext "read-only" files of any length. This archive contains complete C source code and related project files. Application also available; check ftp sites or e-mail f8dy@netaxs.com. Finger f8dy@netaxs.com for complete program list. Copyright (C) 1994, Mark Pilgrim. Please read enclosed file "GNU General Public License" for licensing details. Have a nice day. #### BINHEX dialog-controls-11-c.hqx **** Date: Tue, 9 May 1995 16:47:23 -0700 From: tclement@hmc.edu (Todd Clements) Subject: DialogControls11.c; Code for handling controls in dialog boxes DialogControls.c by Todd Clements (tclement@hmc.edu) This source code shows how to do different things with dialogs: 1) Set the window font and size 2) Patch NewControl() so that you have controls in the window font (thanks to Jens Alfke for the code) 3) Use Popup Menus in modal dialogs 4) Use AppendDITL() to get a NewsWatcher-like preferences box 5) Use styled text edit records from resources to display text 6) Write a filter for a ModalDialog 7) Use MovableModal dialog boxes Some of this code is stolen from my own program, others stolen from other people, but it's all here for you! If you have any comments about the code, any improvements/additions/bugs, please feel free to contact me at the above address. I make no guarantees regarding the decency of this code. Run it and use it at your own risk. January 26, 1995 - 1.0 - First release May 9, 1995 - 1.1 - Second release Changed to MovableModal dialog box Added "Reset Panel to Defaults" button Disabled controls when window deactivated #### BINHEX dialog-controls-c.hqx **** X-Sender: tclement@osiris.ac.hmc.edu Date: Sat, 4 Feb 1995 00:39:09 -0800 From: tclement@hmc.edu (Todd Clements) Subject: DialogControls.c; dialog controls in the window font DialogControls.c by Todd Clements (tclement@hmc.edu) This demo shows how to do different things with dialogs: 1) Set the window font and size 2) Patch NewControl() so that you have controls in the window font (thanks to Jens Alfke for the code) 3) Use Popup Menus in modal dialogs 4) Use AppendDITL() to get a NewsWatcher-like preferences box 5) Use styled text edit records from resources to display text 6) Write a filter for a Modal Dialog using ModalFilterUPPs Some some of this code is stolen from my own program, others stolen from other people, but it's all here for you! If you have any comments about the code, any improvements/additions/bugs, please feel free to contact me at tclement@hmc.edu. I make no guarantees regarding the decency of this code. Run it and use it at your own risk. Version History: January 26, 1995 - 1.0 - First release tclement@hmc.edu Todd Clements - "If the federal government were around when the Creator put His hand on this state, Indiana wouldn't be here...it'd still be waiting for an environmental impact statement. - Ronald Reagan #### BINHEX dink-class-c.hqx **** Date: Tue, 2 Mar 93 08:08:11 -0800 From: blob@apple.com (Brian Bechtel) Subject: DinkClass [Downloaded from AppleLink--I'm not the author, Mark Gross is. Contact him via zsass.markg@applelink.apple.com.] DinkClass is a small Think C5.0 (and MPW C++) application framework for system 7 applications. DinkClass is now offered as shareware. If you use ANY of it in your own software, then you must pay a one time fee to Applied Technical Software (ATS) of $45. In return you will get unlimited rights to distribute any COMPILED programs created using part of DinkClass source code. However; the distribution of any source code derived from parts of the DinkClass software MUST BE DONE WITH APPLIED TECHNICAL SOFTWARE'S CONSENT!!!! (So, give me a call.) You also get, for the $45, two free maintenance updates of the basic class library, of the basic demo applications, of the documentation, any extra demo applications I may have created (DComDemo a CTB demo, for instance), the MPW C++ supporting files (.make, .r, .c files renamed to .cp, etc.), and telephone and EMail support. Maintenance updates go out in December and July. The DinkClass ShareWare distribution package includes: o Think C 5.0 projects with well commented source code for 2 applications and the Template project. o Think C 5.0 source files for the base class library. o Off-line documentation of the key features implemented in the class library, all conforming to the Feature Oriented Documentation standard developed. Features documented in this way include: All the applications, Scrolling Windows, Event parsing, File and I/O handling, Clip board support, Menu Handling, and more. o A readme file. o A directory "Listings" file of what constitutes this ShareWare distribution. o A shameless flier soliciting contract software development work for ATS. o The executable form of the CTB demo application. o This "Posting note" Feel free to redistribute this shareware package of DinkClass as you wish, but ALL OF THESE FILES MUST STAY TOGETHER UNALTERED IN ANY RE-TRANSMISSION OR DISTRIBUTION OF THIS SHAREWARE PACKAGE!!!!! p.s. it would be nice if someone could but this package in some of the INTERNET repositories (like SUMEX) Mark Gross 12/31/92 Applied Technical Software 19548 W. Cambridge Rd. Mundelein, IL 60060-1005 Telephone: 708.949.0925 Software engineering services in OOD, OOP, C++, C, MacApp, TCL, MPW, ThinkC. Initial project development intended for transfer to client with continued technical support. Turnkey, prototype, and consulting projects accepted. I know, its another shameless plug. p.s. If you would like to use DinkClass in an educational setting contact me for FREE transient licensing arrangements. --Brian Bechtel blob@apple.com "My opinion, not Apple's" #### TEXT dir-scanning-sample-c.txt **** Date: Wed, 2 Sep 92 15:19:54 PDT From: macmod@SUMEX-AIM.Stanford.EDU (Info-Mac Moderator) orrow.stanford.edu!stanford.edu!ames!haven.umd.edu!darwin.sura.net!wup ost!micro-heart-of-gold.mit.edu!bu.edu!Shiva.COM!world!aep From: aep@world.std.com (Andrew E Page) Newsgroups: comp.sys.mac.programmer Subject: Re: Directory Scan Revisited dirscan.c (C Code) Message-Id: Date: 2 Sep 92 19:04:54 GMT References: Organization: The World Public Access UNIX, Brookline, MA Lines: 625 Apparently-To: info-mac Resent-To: backmod Resent-Date: Wed, 2 Sep 1992 15:19:53 PDT Resent-From: Info-Mac Moderator Here is the directory scanning code. Written under MPW 3.2. --------CUT HERE------------------------------------------------CUT HERE------ #### BINHEX directory-c.hqx **** From: kenlong@netcom.com (Ken Long) Subject: directory_src.sit Date: Tue, 21 Dec 1993 08:54:22 -0800 (PST) Dear MacGifters: A netcom server error fouled up my first attempt to send this. ----------------------------------------------------------------------- Directory is o PD (for noncommercial use) Think C 5.0.4 project which puts up a window, shows progress data of scans of mounted volumes in a window for each, then displays full path trees for all files on the volumes. Teaches about getting full paths, scanning volumes, scrolling text, writing data to a window, and much more. ----------------------------------------------------------------------- #### BINHEX directory-popup-101.hqx **** From: mwaren@mbox.vol.it (Marco Piovanelli) Subject: DirectoryPopup 1.0.1; a code snippet DirectoryPopup 1.0.1 is a C code snippet for Macintosh programmers that shows how to implement a Finder-like pop-up menu for folder navigation in window titles. CodeWarrior 10 project files and a sample application are included. -- marco #### BINHEX dirent-h.hqx **** Date: Sun, 4 Jul 93 14:52:04 EDT From: ugtalbot@mcs.drexel.edu (George T. "14K F/D" Talbot) Subject: dirent.sit.hqx This is source code for a Mac implementation of the UNIX "dirent.h" library. #### BINHEX display-graphics-102-c.hqx **** Date: 20 Mar 1995 14:29:13 U From: "Samuel Herschbein" Subject: DisplayGraphicsKludge 1.0.2 DisplayGraphicsKludge gives vanilla (ordinary) C programs access to the Mac's graphics, without needing to know how to program the Mac's Graphic User Interface (GUI). DisplayGraphicsKludge is a C procedure that graphically displays any contiguous area of your C program's memory (RAM image) as a 2 dimensional uniformly distributed 256 level gray scale image. The image data in memory is interpreted as one byte per pixel, where 0 = black and 255 = white. The image is displayed in a dialog box. The gray scale image can be printed or saved to the disk as a TeachText/SimpleText PICT file. DisplayGraphicsKludge requires that your computer's leftmost monitor be set to 256 or millions of colors/greys (black&white, 4, 16, & thousands will not work OK). DisplayGraphicsKludge is free, courtesy of the Center for Bioengineering at the University of Washington. Version 1.0.2 corrects some variables defined as ints (they should be short or long to insure that all compilers make them the right size). Sam #### BINHEX dragonsmith-111-cp.hqx **** From: paul.hoffman@umich.edu (Paul Hoffman) Subject: Dragonsmith 1.1.1 Date: Sun, 16 Jan 1994 08:46:13 -0600 --========================_17225260==_ Content-Type: text/plain; charset="us-ascii" Dragonsmith 1.1.1 Drag-and-drop application kit for THINK C 5.0 and 6.0. Dragonsmith lets THINK C programmers easily create drag-and-drop applications (or "dragons") for use with System 7. It features an object-oriented class "Dragon" which may be subclassed to provide any batch-type action desired. All source code is included. Version 1.1.1 is a bug-fix and THINK C 6.0 compatibility release only. No new features have been added, and the documentation has not been changed from version 1.1. Some of the bug fixes since version 1.1 -- + Processing is no longer sluggish when drag-and-dropping files to launch a dragon + Files on AppleShare volumes are now handled correctly + Launch in System 7.1 no longer results in a crash Notable features of Dragonsmith -- + Versatile disk- and folder-opening capability + Background processing + Extensive documentation (MSWord and text formats) + Resource-based Preferences class + Template files for quick Dragon subclassing Three sample dragons with full source code are included. Dragonsmith is freeware. Paul Hoffman. Internet: paul.hoffman@umich.edu AFS: /afs/umich.edu/user/n/k/nkuitse "Dragons do not enter into this story" --========================_17225260==_ Content-Type: application/mac-binhex40; name="Dragonsmith_1.1.1.cpt" Content-Disposition: attachment; filename="Dragonsmith_1.1.1.cpt" #### BINHEX dragonsmith-111-cw-updt.hqx **** Date: Sat, 22 Oct 1994 20:25:31 -0400 From: paul.hoffman@umich.edu (Paul Hoffman) Subject: Dragonsmith 1.1.1 CodeWarrior update --========================_13102812==_ Content-Type: text/plain; charset="us-ascii" Dragonsmith CW Update updates Dragonsmith 1.1.1 for CodeWarrior C++. The full Dragonsmith kit (available separately) lets programmers easily create drag-and-drop applications for use in System 7 or greater. This archive contains project files for CodeWarrior 4.5 as well as replacements for 8 of the source code files, incorporating changes needed for compatibility with Apple's Universal Headers and CodeWarrior C++. Users of Symantec C++ may benefit from this upgrade as well, although use of Dragonsmith 1.1.1 in Symantec C++ 6.0 or greater has not been tested and is therefore not fully supported. This update was produced by Francis H Schiffer, 3rd. Support for the CodeWarrior version of Dragonsmith will be provided (when possible) by the original author of Dragonsmith 1.1.1, Paul Hoffman. Dragonsmith is freeware, Copyright (c) 1992-1994 Paul M. Hoffman. Programs created using Dragonsmith may be distributed without restriction. NOTE: "Drag-and-drop" here refers to the original Apple Event variety, not to the more recent Drag and Drop for Macintosh (aka the Drag Manager). Paul Hoffman | Francis H Schiffer, 3rd paul.hoffman@umich.edu | skipschiffer@GEnie.geis.com dragonsmith@umich.edu | - - - - - - - Dragons do not enter into this message - - - - - - - --========================_13102812==_ Content-Type: application/mac-binhex40; name="Dragonsmith_CW_update.cpt" Content-Disposition: attachment; filename="Dragonsmith_CW_update.cpt" #### BINHEX driver-22-c.hqx **** From: Pete Resnick Subject: Driver 2.2 Date: Sun, 24 Oct 93 16:20:52 CDT Attached is version 2.2 of Pete Resnick's device driver code. This code is especially useful for device drivers written using THINK C's device driver facility, though it is useful for other development environments as well since it describes in detail how to install device drivers correctly into the Device Manager unit table. Please feel free to use it and to distribute it in it's original form. All that I ask is that you credit me if you use it in a released piece of code. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet: resnick@cogsci.uiuc.edu #### BINHEX drop-shell-20-c.hqx **** From: somogyi@ziff.com (Stephan Somogyi) Subject: DropShell 2.0 Date: Sat, 2 Jul 1994 15:20:45 -0700 --========================_13717509==_ Content-Type: text/plain; charset="us-ascii" DropShell 2.0 - July 1st 1994 by Leonard Rosenthol, Marshall Clow, and Stephan Somogyi DropShell is a collection of C source files that allow you to easily build your own System 7-style drop-box applications. Basic Features DropShell consists of four source files and five header files that are designed to let you quickly add your own application's functionality without having to change the DS sources themselves much. DropShell implements support for dragging files and folder onto the application's icon via AppleEvents - it doesn't cheat and use the System 6 compatibility provided by System 7. DropShell is also a fully factored application - it performs its work by sending AppleEvents to itself. This also allows an application built on DropShell to be "recorded" by an OSA-compatible scripting system. DropShell handles a simple user interface including a splash screen, a "Select File..." option and complete balloon help for all menus and dialogs. --========================_13717509==_ Content-Type: application/mac-binhex40; name="DropShell_2.0_sources.sit" Content-Disposition: attachment; filename="DropShell_2.0_sources.sit" #### BINHEX drop-unix-12.hqx **** From: (Ryan Davis) zss@tssnet1.tss.net Subject: DropUNIX 1.2 DropUNIX 1.2 ============ By: Ryan Davis, Zen Spider Software http://tssnet1.tss.net/zss/ mailto://zss@tssnet1.tss.net Why did I write DropUNIX? ------------------------- Basically I was tired of writing support for some sort of user interface for UNIX ports. What it really comes down to is I dislike both Symantec's and MetroWerk's cconsole call. I thought, "Mac users don't DO paths... It is even discouraged by Apple...". So I wrote this little library allowing people to convert their ugly console app with no real interface to at LEAST be drag & drop'able. How do I use it? ---------------- Well, this is the nice part. So all you have to do is start a new application project (or duplicate the examples project) add all your unix files, the DropUNIX library, and the DropUNIX resources file. Don't forget to make the creator 'UNX' (delta = option-d) or change the BNDL information in the resources. Finally, include "Main.h" in the same file that has your original main(...). It has a #define to convert your main(...) to Main(...), so linkage is automatic once you compile... Essentially, you never change your code! Why should I use it? -------------------- Simplicity for the first part. You don't have to do much of anything to get it up. Second, to maintain Apple's Human Interface Guidelines. I hate, You hate, we all hate icky GUI's! Last, but not least Productivity. By using DropUNIX you have increased your productivity by giving the port a new interface for free, and you have increased your users productivity by giving them an interface they can use intuitively... Changes ======= Version 1.2 has been cleaned up quite a bit. It has been updated for CW8, and includes a CW8 project file. It has been enhanced to compile clean under Apple's Universal Headers 2.0+, and everything now compiles under C or C++, with or without precompiled headers. In other words, if I can compile it, you can compile it! #### BINHEX e-z-progress-bar-10-c.hqx **** From "MaT101@aol.com (Michael Terry)" Wed Mar 15 20:42:39 1995 Date: Wed, 15 Mar 1995 23:42:48 -0500 From: MaT101@aol.com (Michael Terry) Subject: E-Z Progress Bar 1.0a.sit.hqx --========================_6835356==_ Content-Type: text/plain; charset="us-ascii" --========================_6835356==_ Content-Type: multipart/header-set; boundary="========================_6835356==_D" --========================_6835356==_D Content-Transfer-Encoding: base64 Content-Type: application/applefile; name="%E-Z_Progress_Bar_1.0a.sit.hqx" Content-Disposition: attachment; filename="%E-Z_Progress_Bar_1.0a.sit.hqx" AAUWBwACAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAADAAAAMgAAAB0AAAAJAAAATwAAACBF LVogUHJvZ3Jlc3MgQmFyIDEuMGEuc2l0LmhxeFRFWFRCTkhRAQABPgAAAAAAAAAAAAAA AAAAAAAAAAAA --========================_6835356==_D Content-Type: text/plain; name="E-Z_Progress_Bar_1.0a.sit.hqx"; charset="us-ascii" Content-Disposition: attachment; filename="E-Z_Progress_Bar_1.0a.sit.hqx" Enclosed is a submission for the source code folder of Mac development (This archive can be included in CD ROMs) E-Z Progress Bar is a progress bar class which creates and maintains a progress bar window. All you have to do is show it and update its value. It is also customizable, allowing for flexibility in appearance and use. A demo app shows how to use it. Also included is ChiselClass, a class which will create subtle 3-D chiseled effects on rectangular objects. All code is freeware. #### BINHEX earth-plot-301-c.hqx **** From: kenlong@netcom.com (Ken Long) Subject: earthplot-301-c Date: Wed, 19 Jan 1994 07:30:20 -0800 (PST) Hello, folks! Here's an unsolicited file. -Ken- ------------------------Tear along dotted line---------------------------- Description: This is an update of the EarthPlot 3.0 C source. The copy I downloaded, years ago, from AOL, did not run. There was an undefined "FlushEvents" in the tskel.lib addition, which there was no source for. So I had to get TransSkel, get it to run on Think C 5.0.4, use it in EarthPlot, then get EarthPlot to run in the same env. Piece of cake! Here it is! --------------------------Cut Here------------------------------------ #### BINHEX easy-view-src-260.hqx **** From: ace@tidbits.com Subject: Easy View 2.6 source code A number of people have asked about the status of Easy View, Akif Eyler's popular text viewing utility. Akif hasn't worked on it in years, so I asked him about putting it in the public domain for any programmer to update. He agreed, and sent the enclosed archive along with the note below. Although I don't have the time to do this personally, I'd encourage interested programmers to communicate with one another and perhaps share code to create a single version that would cut down on the kind of confusion we had with the various MacPPP variants. cheers... -Adam --- After moving to Marmara University in Istanbul, I haven't had any time to support or develop Easy View any longer. Upon a suggestion from Adam Engst, I decided to publish the source code, open to further modifications. Since independent future developments are possible, I suggest adding a single letter before version number, such as "Easy View A2.70" or "Easy View P2.85", the letter indicating the author. Easy View was written in Object Pascal and it requires MacApp 2.x. Easy View extensions can be written in any language. #### BINHEX eat-au-p.hqx **** Date: Thu, 2 Dec 1993 16:07:50 +0800 From: Quinn Subject: Movie Import Component Source Code --========================_17153170==_ Content-Type: text/plain; charset="us-ascii" Greetings EatAU is a QuickTime component that converts Suns audio (.au) files into QuickTime movies. It comes with full source code and is a simple example of how to write a component in Pascal. Share and Enjoy. --========================_17153170==_ Content-Type: application/mac-binhex40; name="EatAU.cpt" #### BINHEX eclectic-cdef-collection.hqx **** From: case@tvol.it Subject: eclectic CDEF Collection 1.0 The eclectic CDEF Collection is a set of 2 freeware CDEFs (control definition functions) written in Pascal, the Celsius CDEF and the Gauss CDEF. CDEF stands for "control definition function": it is a way to define the appearance and the behavior of custom controls. Custom controls may be dials, gauges, sliders, and so on. CDEFs may be used by almost every Macintosh software and by practically every development environment and programming language. The Celsius CDEF implements a thermometer- or barber pole-style progress bar similar to that used by the Finder in the Copy or Find windows. Additional options allows you to honor custom colors stored in 'cctb' resources, to draw the bar always in the active look ignoring deactivations, and finally to display the bar with a 3D-like "inset" effect, as shown in the develop 15 article "Working in the Third Dimension". The Gauss CDEF draws application-specified blocks of text. It can draw simply the control's title, append a numeric value to it or draw a block of text up to 32K set up by the calling application. Optionally the Gauss CDEF can also honor 'cctb' resources, draw the text with the owning windows' text font, size and style, and draw a 3D-like effect (inset or raised). The eclectic CDEF Collection consists of - two CDEFs: the Celsius CDEF and the Gauss CDEF - two 'stubs' to allow source-level debugging of the CDEFs: StubCDEF and JumpCDEF - some utility routines - a demonstration application for the CDEFs The eclectic CDEF Collection is written by: Sebastiano Pilla Viale dei Mille 20 31100 Treviso (Italy) #### BINHEX enum-types-creators-c.hqx **** From: kenlong@netcom.com (Ken Long) Subject: enumtypes-creators-c Date: Mon, 17 Jan 1994 17:29:26 -0800 (PST) Dear Mac Gifters: You don't seem to have posted my stuff at U. Michigan, lately. I've seen them on Standord, though. Still short on disk space? -Ken- -------------------------------------------------------------------------- Description: Two Think C 5.0.4 source projects. One scans the resident drive for all file types, creates a new text file, and writes those types in a sorted list, with the quantity of those types adjacent to them. The other does exactly the same thing with file creators. ---------------------------Cut Here---------------------------------------- #### BINHEX example-scripting-additions-c.hqx **** Date: Mon, 4 Oct 1993 12:56:06 -0500 From: jonpugh@netcom.com (Jon Pugh) Subject: [*] Scripting Addition Samples --========================_14520392==_ Content-Type: text/plain; charset="us-ascii" Here are eight sample AppleScript Scripting Additions with C source code done by Donald Olson of Apple Computer and presented in his WWDC talk this year. I was asked to make these available on the Internet and now I have. ;) These demonstrate a number of useful techniques for presenting information including the use of records and wildcard handlers in addition to the minimal boring stuff. For all who care, Donald said it was OK to post them since they are also on Applelink. Jon --========================_14520392==_ Content-Type: application/mac-binhex40; name="OSAX_Samples.sit" #### BINHEX fantasm-creation-demo.hqx **** Date: Tue, 21 Feb 1995 07:57:21 +0000 From: pcarter@lincoln.gpsemi.com (Paul Andrew Carter) Subject: Fantasm Creation demo.sit: Here is a small (but impressive) Demo of what can be produced with Fantasm (The Complete Mac Programming System for Lightsoft, Grantham, Lincs. England). ****************************************************** Paul Carter pcarter@lincoln.gpsemi.com GEC Plessey Semiconductors Tel+44 522 502360 Doddington Rd, Fax+44 522 502466 Lincoln,LN6 3LF,UK Gnet: (access)595 2360 ****************************************************** #### BINHEX fantasm-demo-project.hqx **** Date: Tue, 14 Feb 1995 23:29:37 -0200 From: Lightsoft Subject: Demo written with Fantasm Please include the update of the Fantasm on your server. Summary follows... This graphical demo has been written using Fantasm. It requires 256 colors, and 640 by 480 display. Rob Probin for lightsoft #### TEXT fft-asm.txt **** From: Tom Barrett Date: Tue, 26 Jul 1994 10:06:11 -0400 This is an update to info-mac/sci/fft-in-asm-src.txt This file contains three routines: * void tb_68k_four1_extended(long double *data, long nn, long isign); * void tb_68k_four1_single(float *data, long nn, long isign); * void tb_68k_fourn_single(float *data, long *nn, long ndim, long isign) ------------------------------ CUT HERE ------------------------------ /* This code is a hand-assembled version of the fft routine from Numerical Recipes. See the book for information about how it works. All variable names in comments refer to those in the book. To use this routine: * You must have a math coprocessor. * Use Think C (users of other compilers may be able to adapt it). #### BINHEX ffts-for-risc-2-c.hqx **** From: green_jt@VSDEC.Npt.NUWC.Navy.Mil Subject: FFTs-for-RISC-2-c Enclosed is a stuffit archive of version 2.0 of my 'C' source code fft library. Very-Fast Fourier Transform routines. Routines are provided for real and complex forward and inverse 1d and 2d fourier transforms and 3d complex forward and inverse ffts. I coded these to optimize execution speed on Risc processors like the PowerPC. All fft sizes must still be a power of two. Test programs that use the Numerical Recipes in C routines are provided. Also included are some simple applications with source code which time the FFTs. See the enclosed read me file for more information. Revision version 2.0: Rewrote code to rely more on compiler optimization (and be a bit less ugly.) Removed restrictions on too small or too large ffts. Provided a library extension that manages memory for cosine and bit reversed counter tables. Added 2d and 3d complex and 2d real ffts. Speeded routines for data too large to fit in primary cache. Changed most testing from Matlab to Numerical Recipes based (because you can buy it for less.) Changed call parameters (watch out.) Revision version 1.21: line 126 of rfftTest.c corrected. Revisions version 1.2: I now store the Nyquest point of the real transform where the 0 for the DC term's imaginary part used to be. !! WATCH OUT FOR THIS IF YOU USE rfft !! Added the real inverse Fourier transform. Revisions version 1.1: Re-arranged to put fft routines in a shared library and changed source file name to fftlib.c. Removed some ugly optimizations that are no longer needed for CodeWarrier. This code is public domain, do anything you want to with it. - John Green #### BINHEX file-ic-helper.hqx **** From: (Jordan Zimmerman) jordanz@altura.com Subject: Internet Config "file:" Helper "file:" Helper for Internet Config By Jordan Zimmerman (c)1996 Hereby released into the Public Domain ___________________________________________________________________ 10/8/96 REQUIREMENTS: Internet Config 1.1 and knowledge of programming Internet Config. DESCRIPTION: This code implements a function similar to ICLaunchURL(): OSErr ICLaunchFile(ICInstance ic_instance, const FSSpec* file_spec_ptr); This sends the given file to the user specified Web browser as a "file:" URL. LICENSE: This code is released into the public domain and can be used, modified, etc. as desired. However, the author would appreciate a mention in the about box or documentation. ================================================ Jordan Zimmerman Altura Software, Inc. home page: http://www.altura.com/jordanz Harry Browne for President! http://www.harrybrowne96.org 1 (800) 682 1776 Stop the Browne Out! Let Harry Browne debate! http://www.twr.com/stbo #### BINHEX final-chance-111-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Final Chance 1.1.1 (source code) Date: Mon, 17 Jan 1994 22:17:12 -0500 (EST) Final Chance 1.1.1 is a combination of fluff and utility, giving you a random quote on shutdown (one of 150) and a chance to stop the shutdown process and go back to the Finder. If you let the dialog box sit for 60 seconds, it will automagically shut down. This archive contains complete THINK C source code and project files. The INIT alone is also available; check ftp sites or e-mail f8dy@netaxs.com. Finger f8dy@netaxs.com for complete program list. Copyright (C) 1993-4, Mark Pilgrim. Please read enclosed file "GNU General Public License" for licensing details. #### BINHEX finder-marquee-c.hqx **** Date: Mon, 10 Jul 1995 17:25:18 -0800 From: jordanz@altura.com (Jordan Zimmerman) Subject: Finder Marquee Mac development source code that implements a "rubber band" marquee select rect with very smooth drawing in a manner similar to the Mac Finder. #### BINHEX finder-progress-bar-20-c.hqx **** From larson@BASE.CS.UCLA.EDU Tue Mar 14 10:48:39 1995 Date: Tue, 14 Mar 1995 10:48:31 -0800 (PST) From: Chris Larson Subject: FinderProgressBar 2.0 : A CDEF Progress Bar. Enclosed is version 2.0 of FinderProgressBar, my CDEF implementation of progress bars which mimic those used by Finder. New features include support for custom control colors, support for the "barber-pole" animation of progress bars, and native execution on both 680x0 and PowerPC architectures. Complete source code (Metrowerks CodeWarror v5.5) is included. Info-Mac Moderators: This file replaces info-mac/dev/src/finder-progress-bar-11-c.hqx. Feel free to include this on any CD you choose. --Chris _______________________________________________________________________________ Chris Larson -- Amateur Macintosh Geek, CoBase Research Assistant Internet: larson@kingston.cs.ucla.edu (Insert Disclaimer here) #### BINHEX finger-server-c.hqx **** Date: Wed, 20 Oct 1993 10:00:21 -0400 (EDT) From: Aaron Wohl Subject: finger server for system 7 Finger server for system 7 by Aaron Wohl N3LIW / Public Domain / mail n3liw+@cmu.edu Home ftp site akutaktak.andrew.cmu.edu [128.2.35.1] /aw0g/finger* Shows list of running processes and list of open files. >From a unix server we finger a mac running a mail gateway to see if it is still alive and what it is running. Think C sources included #### BINHEX fixit-c.hqx **** From: a mouse in the castle, tinyjohn@sasknet.sk.ca Subject: Fixit Fixit is an MPW tool that translates easily readable infix mathematical expressions into difficult to read and edit fixed point math function calling sequences that are suitable for use as expressions in C programs. It also serves as a fixed point expression evaluator. Full C, yacc, and lex source code included. Also, C source code for the following fixed point routines can be found herein: FixSqrt, FixExp, FixSquare, FixCos, --------------------------------------------------------------------- - John Montbriand P.O. Box. 1133 - - tinyjohn@sasknet.sk.ca Saskatoon Saskatchewan Canada - - (306) 955-5189 S7K 3N2 - --------------------------------------------------------------------- #### BINHEX fixit.hqx **** From: a mouse in the castle, tinyjohn@sasknet.sk.ca Subject: fixit Fixit is an MPW tool that translates easily readable infix mathematical expressions into difficult to read and edit fixed point math function calling sequences that are suitable for use as expressions in C programs. It also serves as a fixed point expression evaluator. Full C, yacc, and lex source code included. Also, C source code for the following fixed point routines can be found herein: FixSqrt, FixExp, FixSquare, FixCos, FixSin, FixTan These libraries are for free. Copyright (C) 1996 by John Montbriand. All Rights Reserved. #### BINHEX fixsrc-13-src-c.hqx **** From: (Adam Miller) miller@minerva.cis.yale.edu Subject: Fixation 1.3 (Source Code) Source code of Fixation, a graphical client for the Free Internet Chess Server. Includes TCP stuff and much more. adum #### BINHEX flame-09.hqx **** From: garage@wave.net (Ellrott) Subject: Flame - 0.9 Flame - 0.9 by Kyle Ellrott garage@wave.net ----- This is a very simple set of subprograms that will allow you to create flame effects. What more can I say, it lets you burn things. --- Plans for the future: - Work in other other color types then just 8-bit indexed - A sin wave variation on the flame path - Some assembly to speed up key parts - Just make it faster - Burn down a building --- Legal junk I coded this as a practice, and also because I like to burn things. All I really want is a nice mention in any program that you use this in, and maybe a nice e-mail, that I can burn. Kyle Ellrott garage@wave.net #### BINHEX flight-simulator-20-c.hqx **** Date: Fri, 11 Dec 92 10:32:00 PST From: chris@carnival.lbl.gov (Chris Moll) Subject: flight-simulator_v2.hqx This is the source code for a program to demonstrate how to do 3D perspective drawing and clipping. It's written as a sort of crude flight simulator - you "fly" through a rather simple world. It also shows how to do simple animation. All math is fixed-point to make the speed tolerable on feebler Macs. With an FPU the speed would be roughly the same using floating point. The package contains the source code, a ThinkC vers.5.0.3 project, and an executable version compiled for any Mac. The changes from the old version are minor, mostly I fixed things that would prevent it from compiling. Comments etc. to Chris Moll chris@carnival.lbl.gov archive as /info-mac/source/c/flight-simulator_v2.hqx (replace /info-mac/source/c/flight-simulator.hqx) #### BINHEX flight-thru-clouds-cpp.hqx **** Date: Sat, 9 Jul 94 12:42:15 -0500 From: oleg@ponder.csci.unt.edu (Kiselyov Oleg) Subject: flight_thru_clouds - simple virtual reality w/ source and expl What: "virtual" flying through the clouds Hot points: - simple virtual reality "thing" - with the source - *very* detailed explanation as to how to generate clouds and render maps in 3D. - includes the source for a small class library to handle color Mac windows and draw images in off-screen GrafWorlds Contents: Readme - this file Venus - Application itself Venus.pi - project and resource files to build it Venus.pi.rsrc - 'clut' resource FractalMap.cc - generate a fractal map (clouds) project_3D.cc - display a 3D moving projection of the map of clouds display.cc - display an image in a Mac window window.h \ my own private *very* simple MacApp: classlib for SimpleWindow.cc / handling color Mac windows and offscreen GrafWorlds The source code contains (too) many comments to show what a particular piece of code does, as well as some tricks involved Language: Symantec C++ 7.0.3 (previous versions might work, too) System: System 7.x; tested on IIci, Quadras and Centres. Note: the source code uses a "standard" environment, see myenv-notify.cpt, which can be found at various archive sites under the name 'myenv-notify'. The source also uses graylib class library to handle images, recently posted on comp.source.misc. However, the library is not *very* used; one can easily get around without it with only small modification of the code. Comments-to: oleg@ponder.csci.unt.edu, oleg@unt.edu Many-Thanks-To: Tim Clarke, tjc1005@hermes.cam.ac.uk (for inspiration) Explanation: Just fire it up, sit back and enjoy. Hope you'll get some feeling that you're hovering over or flying through the clouds. If you quit the program and start it over again, you'll get different clouds (which might be much better and more interesting to fly around). If you want to take on a more active role, hold the mouse button down and move the mouse. Then your flight is in your own hand (which holds the mouse). You have to keep the mouse button down all the time you want to control the situation: when mouse button is up, the system flies by itself. You can also use the keyboard: arrows left/right/up/down move you around, PgUp/PgDn changes your altitude (or height of the horizon if pressed with "Option"); all other keys quietly kill the program (you can also quit by clicking the close box of the window). This program is inspired by "MARS.EXE" and its description posted in rec.games.programmer. There, the author of Mars, Tim Clarke, explained its guts, though he didn't give detailed equations and there were a few typos in his post. Source file 'project_3D.cc' in the present submission contains the fullest description (I could come up with) of the 3D rendering technique: with background, equations, pseudocode and the actual code (and tricks with the fixed-point arithmetics: hey, no floating-point numbers are in here). If you need further information or details, mail me. Enclosers: Venus.cpt.hqx ------------------------------------------------------------------------ #### BINHEX floating-windows-pas.hqx **** From: pottier@clipper.ens.fr (Francois Pottier) Subject: no subject (file transmission) Date: Sat, 19 Jun 93 12:53:34 MET DST Hi archiver! This is a small set of THINK Pascal 4 routines to handle floating windows in a Pascal program. A few days back I looked on several ftp sites for such code snippets. All I found was a C library by Patrick Doane. I translated it to THINK Pascal and I also made it much shorter and clearer (IMHO). Since there is no Pascal source code out there, I thought I'd submit to the archives. This code is public domain. Whoever finds it useful may use it. Enjoy Francois Pottier pottier@clipper.ens.fr To the archiver : this file should be named something like 'Pascal-FloatWin.hqx', I suppose. Thanks #### BINHEX fmenus-example-pas.hqx **** Date: Tue, 24 Nov 1992 13:45:06 +0800 From: Peter N Lewis Subject: source/pascal/FMenusExample.hqx _______________________________________________________________________ Peter N Lewis Ph: +61 9 368 2055 This is some example code to demonstrate the use of MyFMenus.unit. This unit implements FMenus in a similar way to the Finder, which allows decoupling of the menu position from the code that executes the menu's command. The example program is not a full shell, it simply implements the Menus, and each menu selection prints a message to the console window. It should be fairly easy to understand. I've used this code in several programs, and it works quite nicely, avoiding the need to keep changing constants in the code every time you add a menu item. TopSoft is working on an advanced version of this (written in C for some strange reason), if you are interested in that, or other things that TopSoft is doing, check out the ftp site at syrinx.kgs.ukans.edu in the /topsoft directory, or ask to join the mailing TS mailing list at ts-request@syrinx.kgs.ukans.edu (hopefully you'll join inbetween the flame wars and not in the middle of one :-) [Wouldn't it be nice if this came out comp.sources.mac? Too much to ask I guess] Hope its useful to someone, Peter. FMenus Example v1.0.0 Copyright 1992 Peter N Lewis #### BINHEX friends-of-nim-c.hqx **** From: f8dy@netaxs.com Subject: Friends of Nim 1.0 source code Date: Sun, 9 Jul 1995 16:47:34 -0400 (EDT) Friends of Nim is a collection of games based on John Conway's game of Nim. Included: Nim, Prime Nim, Northcroft's Nim, Turn-a-block, My daddy makes more money than yours, Corner the Queen, Corner the Superqueen, Corner the King, and Corner the Superking. Play against a friend or pit your skills against the computer. Play regular or misere style games. Requires system 7.0 or later. Copyright (c) 1995, Mark Pilgrim; please read enclosed file "GNU General Public License" for licensing details. #### BINHEX frontier-scripts.hqx **** Date: Wed, 27 May 92 22:28:21 EST From: dks@MIT.EDU (Dhanesh K. Samarasan) Subject: [*] Some "Frontier" Scripts & Information With regard to: > Date: Wed, 27 May 1992 11:02:56 -0600 > From: igorl@uiuc.edu (Igor Livshits) > Subject: Frontier scripts > > Could someone please download the assorted Frontier scripts > from AppleLink to the info-mac archive? I have attached a number of basic scripts which I am sure it is OK to post. They are in DiskDoubler's ".sea" format (binhexed). Please archive the submission as: "Frontier_Scripts.sea.hqx" The scripts may be buggy -- in fact some of them definitely are -- and I do not endorse them in any way. Caveat downloader. There may be other scripts on AppleLink that I didn't see. If you were talking about something else, I apologize. If you are looking for something in particular, let me know. > Preferably, someone who won't have to pay the unreasonable > download/connect charges :-) Oh, I pay them all right, but consider it my good deed for the day. Note that there is a LISTSERV list -- and an FTP site -- dedicated to Frontier. Lots of stuff is available there. The list and the site are managed by Andy J. Williams (Andy_J._Williams@dartmouth.edu; see below for details), who can probably answer any questions you may have. Cheers, Dhanesh ........................................................................ Frontier Listserv Available! Userland's Fontier is the first System level scripting for the Macintosh. With it, users can create scripts to control any number of Apple Events aware applications (and in conjunction with QuicKeys, non-Apple Events applications as well). We have created a LISTSERV mailing exchange to allow people to share Frontier knowledge with each other. Users are encouraged to post tips, techniques, questions, scripts or script pieces, and anything else they think relevant. Accompanying this list will be an anonymous ftp site where people can place/get scripts, or related pd/shareware software. If you would like to subscribe to this list send mail to "listserv@dartmouth.edu" with SUB FRONTIER in the body of the message (NOT the subject!). If you are new to Listserv or need additional help, send mail to "listserv@dartmouth.edu" with HELP in the body of the message (again, NOT the subject.) If you have any questions about the list or its uses, feel free to contact me (via eMail only please!) If you have any questions about Userland Frontier, feel free to contact me (but calling Userland itself might also be a good idea). -- Andy J. Williams, Manager, Computer Resource Center Dartmouth College, 603 646-3989 ........................................................................ #### BINHEX fudd-10-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Fudd 1.0 (source code) (repost) Date: Mon, 7 Feb 1994 23:13:56 -0500 (EST) (This is a repost of the source archive I posted recently. The last archive was missing a few files; this should have everything.) Fudd is a small utility to convert text files to Elmer Fudd talk, like the character of the same name in the U.S. cartoon "Bugs Bunny." Supports drag and drop of any number of text files of any length. This archive contains complete THINK C source code, project files, and resource files. Application also available; check ftp sites or e-mail f8dy@netaxs.com. Finger f8dy@netaxs.com for complete program list. Copyright (C) 1994, Mark Pilgrim. Please read enclosed file "GNU General Public License" for licensing details. #### BINHEX game-master-isolation-pas.hqx **** From: gurhs@uniwa.uwa.edu.au (Rhys Hollow) Subject: source/pascal/Isolation-rulebook.hqx Date: Wed, 13 May 92 21:49:08 WST The Moderators, Here is the source to the GameMaster rulebook Isolation. It assumes the user has the GameMaster developer's kit. It is in Think Pascal 4.0 Rhys. -- Rhys Hollow (gurhs@uniwa.uwa.oz.au) "ee'er by gum he's a bad'un!" -DangerMouse. #### BINHEX gamma-table-11-p.hqx **** Date: Wed, 21 Jul 1993 10:16:09 -0800 From: mxmora@unix.sri.com (Matthew Xavier Mora) Subject: Gamma Util Pascal Library I converted Matt Slot's Gamma Library so that it can be used by Pascal programmers like me. Enclosed is Gamma util Pascal Library. This lets you do screen dimming on monitors capable of doing dimming. Matt __________________________________________________________________ Matthew Xavier Mora The keeper of the UMPG SRI International Matt_Mora@QM.sri.com [Sent using Eudora 1.3] mxmora@unix.sri.com __________________________________________________________________ #### BINHEX gc-frontier-snippets-10-fr.hqx **** Date: Sun, 13 Nov 1994 17:13:07 +0100 From: "Gary T. Czychi" Subject: GC Frontier Snippets 1.0 GC Frontier Snippets 1.0 ************************ Important stuff, please read... Hi, this is a collection of Frontier 3.0 scripts, which enable Userland's Frontier to do some things which are not (or poorly) implemented in the standard version. These are more than 50 scripts and variables which noone should be without. Like getting the monitor size and settings, turn file sharing on/off and get its state, position Finder windows, set Finder flags, get sizes of Data and Resource Forks, some Ressource magic and lots of other stuff, to much to mentiuon here. Just try it out! This is how to install: * Double click on the file "root.snippets" and install it into your database. * in "system.misc.paths" add another address: "root.snippets". That way you can just type the snippets scripts without supplying the whole path to the procedure when you call it. * Double click the "system.extensions" file and import it under a different name, like "root.foo" or something. This way you can take a look at the XCMDs I added and copy those externals to your own externals folder. Although this is not necessary, I would do it this way. However, if you want to, you can replace your existing "system.extensions" without taking a look at my extensions. Legal stuff: All of these scripts work fine for me (on different machines). However there might still be some bugs somewhere. Therefore use it at your own risk. Some Externals are from the net, some are from myself. Whenever poosible I have included the related documentation of the external in a WP document. I hope that I didn't violate a copyright or shareware regulation, but I don't think so. If so, please contact me. Userland has nothing to do with this, and I have nothing to do with Userland, except for being a satisfied customer. I hereby put these scripts into "Public Domain" or "PostcardWare", whatever you like most. Drop me a line with a beautiful picture and you make me happy -- it's so easy! If someone from Userland reads this, I would like to make a wish: Please remove the bug from setting the size and position of the Frontier.root window. Thanks so much. Your Tech Support is great! Have a good time and -- Happy Scripting! Gary Gary Czychi Tiefe 966 CH-9105 Schoenengrund Switzerland czychi@sgcl1.unisg.ch #### BINHEX get-file-icon-11-c.hqx **** Date: Sat, 18 Mar 1995 19:43:52 -0800 (PST) From: Jeff Beeghly Subject: GetFileIcon1.1 here is GFI v1.1. It includes several enhancements over v1.0 (GetFileIcon.sit.hqx). Please remove GetFileIcon.sit.hqx and add GetFileIcon1.1.sit.hqx to the umich & info FTP sites GetFileIcon is a code snippet designed to demonstrait how to get a file's icon and display it. #### BINHEX ghost-10-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Ghost 1.0 (source code) Date: Thu, 16 Dec 1993 04:10:10 -0500 (EST) Ghost is a classic word-building game for two or more players. Players take turns each adding a letter to build a word, and whoever finishes the word loses the round. Lose five rounds, and you become a "ghost" and are out of the game! Up to five human players can compete against up to five computer players at a variety of skill levels. Ghost is free and is distributed under the GNU General Public License; this archive contains complete THINK C source code for the game, as well as complete source code for an external application used to set up the game's self- integrity checker. If you do not have FTP access, e-mail the author requesting a copy of the game, the source code, or a list of other programs by the same author. The address is f8dy@netaxs.com. Bug reports, comments, and suggestions may be sent to the same address. This archive contains both THINK C 5 and THINK C 6 project files. Use whichever one you wish and throw away the other. The code demonstrates the basics of event handling, menus, hierarchical menus, prefs file maintenance, dialogs, alerts, windows, off-screen bitmaps, synchronous and asynchronous sounds, machine-independent timing loops, file maintenance, Gestalt environment checking, apple events, and the not-quite- yet-famous "cough to continue" modal dialog filter proc. None of this is very well commented, but feel free to direct any questions to f8dy@netaxs.com. Ghost 1.0 is copyright 1993, Mark Pilgrim, MerriMac Software Group. #### BINHEX ghost-mouse-11-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Ghost Mouse 1.1 (source code) Date: Sat, 13 Nov 1993 23:35:30 -0500 (EST) Ghost Mouse is a fun little INIT which will cause your mouse to disappear if you stop moving it. Due to numerous requests from users of version 1.0, the mouse can stay stationery for about 2 seconds before it disappears. This INIT is free and is distributed under the GNU General Public License; this archive contains complete THINK C 6.0.1 source code and project files for the INIT. If you do not have FTP access, e-mail the author for a copy of the INIT, the source code, or a list of other programs by the same author. The address is f8dy@netaxs.com. This code demonstrates the basics of writing and installing a VBL. This code should work under any system, with any monitor, on all Macintoshes. Please report any bugs/comments/suggestions to f8dy@netaxs.com. Ghost Mouse 1.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group. #### BINHEX glo-app-folder.hqx **** From: 3gl21@qlink.queensu.ca Subject: GLoAppFolder.sit - support for accessing application folder GLoAppFolder class Copyright © 1997 Gregory Lo. All rights reserved. Description: This class provides some support for accessing files and subfolders in the same folder as the application. Notes: Near the start of your application, just make a call to GLoAppFolder::Startup(); This initializes a static FSSpec with the location of your application. Various calls are provided to create modified FSSpecs based on this one; and open resource files in those places. You can change the FSSpec using file or folder name strings from a string list resource, or via a pointer to a pascal string. For instance: * osErr = GLoAppFolder::MakeFSSpec( "\pPlugins", myNewFSSpec ); * osErr = GLoAppFolder::MakeFSSpec( kFolderNamesID, kPluginsFolderName, myNewFSSpec ); * refNum = GLoAppFolder::OpenResFile( "\pSounds", fsRdPerm ); * refNum = GLoAppFolder::OpenResFile( kFileNamesID, kSoundsFileName, fsRdPerm ); Other information accessors are provided. * vRefNum = GLoAppFolder::GetVolumeRefNum(); * parID = GLoAppFolder::GetParentID(); * myConstFSSpecPtr = GLoAppFolder::GetAppFileFSSpecPtr(); * myConstFSSpecRef = GLoAppFolder::GetAppFileFSSpec( void ); Change history: 04Nov1997 * Updated documentation Contacting the Author: email: * gregory-lo@usa.net * 3gl21@qlink.queensu.ca (before May, 1998) License: License is given to freely use this in any of your code: commercial, or otherwise. Send me a postcard or email if you do. Copyright © 1997 Gregory Lo. All rights reserved. #### BINHEX glo-st-dial-action.hqx **** From: 3gl21@qlink.queensu.ca Subject: GLoStDialAction.sit - support for live-scrolling scrollbars GLoStDialAction class Copyright © 1997 Gregory Lo. All rights reserved. Description: This class provides support for live-scrolling with a standard scroll-bar control. Notes: Only a handle to the control, the point from which to start tracking, and a pointer to a change-value-procedure is needed. One need only instantiate a GLoStDialAction object, and use and reuse it whenever live thumb-tracking is needed. For example: GLoStDialAction theThumbTracker; : theThumbTracker( myControlRef, thePoint, MyChangeValueProc ); theThumbTracker( anotherControl, anotherPoint, anotherProc ); The GLoStDialAction object is a functor -- an object that behaves like a function. Its operator() has been overloaded to support this. A convenience function, TrackIndicator(), is provided. An example call: TrackIndicator( myControlRef, thePoint, MyChangeValueProc ); The change-value-procedure must be declared as follows: void MyChangeValueProc( ControlRef inCntrl, const SInt32 inValue ); One should test that only the control's indicator is being pressed before invoking the GLoStDialAction object. Hits in other parts of the control can be handled in the normal fashion. (ie. call ::TrackControl() with or without a control action procedure). Change history: 30Oct1997 * Changed to set the control value before calling the change proc * Changed to redraw the control completely after tracking is done 04Nov1997 * Restored the slop rectangle handling * Changed some #ifdef's to #if's * Updated documentation Contacting the Author: email: * gregory-lo@usa.net * 3gl21@qlink.queensu.ca (before May, 1998) License: License is given to freely use this in any of your code: commercial, or otherwise. Send me a postcard or email if you do. Copyright © 1997 Gregory Lo. All rights reserved. #### BINHEX glue-window-421-c.hqx **** Date: Sat, 25 Mar 1995 19:34:00 +0900 From: "GBH06222@niftyse" Subject: GlueWindow4.2.1(source) A Window Utility Hi, This is source code of GlueWindow4.2.1. GlueWindow4.2.1 is sent at same time. Details is written in ReadMe file in this BinHexed package. Of course, no virus is included (checked with Disinfectant 3.5). I think that this code should be in /dev directory (old version 4.1.2 is posted). Including in CD-ROM will be welcome, too. Takenori Kabeya GBH06222@niftyserve.or.jp kabeya@atlas10.kuic.kyoto-u.ac.jp #### BINHEX glypha-iii-c.hqx **** From: leo@cp.tn.tudelft.nl (Leo Breebaart) Subject: Glypha III Src [arcade game source code] Date: Sat, 25 Feb 1995 14:51:05 +0100 (MET) This is the fully documented (and free) CodeWarrior C source code to John Calhoun's Macintosh arcade game Glypha III. Leo Breebaart (leo@cp.tn.tudelft.nl) #### BINHEX gms-10b2-o.hqx **** Subject: GMS1.0b2 (music w/ QT2.0 library) Date: Wed, 21 Sep 1994 19:05:01 -0600 (CST) From: "Glenn Andreas" Enclose is GMS1.0b2, a library for adding background music with QuickTime 2.0 to your programs (QT 2.0 not included). It is a .o file that can be linked with most any compiler (it was written in TP) There are six simple calls (init, de-init, idle, suspend, resume, and play) that provide a simple way to use the music playing components. Once set up, playing music is a simple as playing a sound resource (simpler, actually). Includes a utilities to convert MIDI files to "Musi" resources (it doesn't play MIDI files directly). This is a "companion" library to the Oct MacTech article on QT Music. If you want to include this library in your application, all I ask is a copy and credit in the about box... Glenn (yes, I'm still working on Chimera) Andreas gandreas@aol.com #### BINHEX gmz-libraries.hqx **** Date: Fri, 23 Dec 1994 21:45:46 -0500 From: gmz@po.CWRU.Edu (Georges M. Zwingelstein) Subject: libraries for port of GNU patch, diff and rcs to the Macintosh. gnu.patch.2.1.hqx : GNU patch for the Macintosh gnu.diff.2.0.hqx : GNU diff for the Macintosh gnu.rcs.5.6.hqx : GNU rcs for the Macintosh gmz.libraries.hqx : Libraries to port the above programs to the Macintosh. Merry Christmas and Happy new year. Georges #### BINHEX gnu-bison-122-c.hqx **** From: Scott Hofmann Subject: GNU Bison 1.22 THINK C 6.0 port Date: Thu, 11 Aug 1994 17:38:36 -0400 (EDT) This is a minimal port of the GNU YACC-compatible parser generator Bison, version 1.22, for Symantec's THINK C 6.0. A compiled application is included, so you don't need THINK C in order to use Bison (although it won't do you much good if you can't then compile y.tab.c!) Please direct any questions concerning Mac specifics to myself rather than the GNU people - they don't like Apple much, and will just lecture you on the evils of Apple. scott ------------------------------------------------------------------------------- J. Scott Hofmann | "Back off, man, I'm a scientist!" scotth@visix.com | -Dr. Peter Venkman, _Ghostbusters_ #### BINHEX gnu-flex-246-c.hqx **** From: Scott Hofmann Subject: GNU Flex 2.4.6 for THINK C 6.0 Date: Tue, 26 Jul 1994 12:01:24 -0400 (EDT) This is GNU Flex version 2.4.6 compiled in Symantec C++ 6.0. Flex is the GNU lex-compatible lexical analyzer. This version is a minimal port to the Macintosh - the only changes were to call ccommand() in main() to get the command-line arguments. This file replaces the THINK-C version of Flex 2.3.7. A compiled application is included, so you do not need Symantec C++ in order to use Flex 2.4.6. Full documentation is included, as are the sources per the GNU Public License. Macintosh-specific release notes are included in flex-2.4.6:MISC:Macintosh. I am currently working on a CodeWarrior port, with an enhanced front end - not just the ccommand() dialog box. Any other questions, please drop me a line. scott ------------------------------------------------------------------------------- J. Scott Hofmann | "Back off, man, I'm a scientist!" scotth@visix.com | -Dr. Peter Venkman, _Ghostbusters_ #### BINHEX gnu-gdbm-173-c.hqx **** From: tsyang@dec-5.CE.Berkeley.EDU (Tzong-Shuoh Yang) Subject: GNU gdbm-1.7.3: a database manager Date: Mon, 23 May 94 00:48:24 -0700 Hello, This is the mac port of GNU gdbm-1.7.3 database manager. The Think C 7.0 source code is included. This is GNU free software. Have fun. Tzong-Shuoh Yang (tsyang@ce.berkeley.edu) ==================================================================== #### BINHEX gnu-patch-21.hqx **** Date: Fri, 23 Dec 1994 21:45:46 -0500 From: gmz@po.CWRU.Edu (Georges M. Zwingelstein) Subject: libraries for port of GNU patch, diff and rcs to the Macintosh. gnu.patch.2.1.hqx : GNU patch for the Macintosh gnu.diff.2.0.hqx : GNU diff for the Macintosh gnu.rcs.5.6.hqx : GNU rcs for the Macintosh gmz.libraries.hqx : Libraries to port the above programs to the Macintosh. Merry Christmas and Happy new year. Georges #### BINHEX go-sit-in-the-corner-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Go Sit In The Corner (source code) Date: Sun, 16 Jan 1994 23:58:43 -0500 (EST) Go Sit In The Corner will make your cursor jump to a corner of the screen after a specified amount of time. Completely configurable control panel (which corner, how long before it jumps, whether it only jumps after a period of inactivity). This archive contains complete THINK C source code and project files. The INIT alone is also available; check ftp sites or e-mail f8dy@netaxs.com. Finger f8dy@netaxs.com for complete program list. Copyright (C) 1994, Mark Pilgrim. Please read enclosed file "GNU General Public License" for licensing details. #### BINHEX graf-sys-20-p.hqx **** From: cfranz@iiic.ethz.ch (Christian Steffen Ove Franz) Subject: GrafSys 2.0 Submission Date: Wed, 26 Jan 1994 18:50:51 --100 Dear Moderators, enclosed please find GrafSys 2.0. Please note that the 2.0 release does not replace the 1.x version since it is very different. What is 3D GrafSys 2.0 ====================== GrafSys is a hierarchical object-oriented class library for THINK Pascal. It is designed to facilitate easy 3D graphics and animations in your programs. GrafSys supports full 3D control of graphical objects and electronic eye. Graphical objects can be independently rotated (around arbitrary axes), translated and scaled. Objects can inherit transformations (rotation, scaling and translation) from other objects. GrafSys supports dynamic (i.e. on-the-fly) and multiple inheritance of transformations and an unlimited number of so-called operators (matrices) per object. The GrafSys provides objects for 3D points, lines and whole objects that can contain up to 8000 lines in full RGB color and more than 250'000 points. GrafSys also supports ultra-fast polygon filling using the triangulation approach. With it you can easily implement hidden-surface removal. Designed for fast and simple to program animations, GrafSys supports an AutoErase feature where the object automatically erases its previous image before redrawing itself. For flicker-free animations GrafSys also provides easy to use Off-Screen bit map handling. GrafSys is a combination of procedures and a powerful, extensible class library that can be easily curtailed to your specific needs. For example the general-purpose 3D object 'TSObject3D' understands over fifty messages for such diverse things as building a point/line database, rotating and drawing itself. The 2.0 version comes with full source code. Christian Franz #### BINHEX graf-sys-triangle-p.hqx **** From: cfranz@home.malg.imp.com Subject: GrafSys 2.0 Triangle Files [part 1 of 1] Date: Mon, 28 Feb 94 21:18:57 +0100 Organization: Christian is currently at home. Dear moderators, a few weeks ago I submitted GrafSys 2.0, a 3D Graphics Library and animation tool. Many people have told me that I forgot to include the library files for the triangle project. You need these files in order to re-compile the library. Well, here they are. Liva and in stereo :-) Cheers, Christian --- cfranz@home.malg.imp.com Voice: + 1 / 261 26 96 Christian Franz - Sonneggstrasse 61 - CH-8006 ZUERICH - Swizerland -- cut here -- begin GrafSys-C-lib-int.hqx -- part 1 of 1 -- #### BINHEX gravity-mouse-11-c.hqx **** From: f8dy@netaxs.com (Mark Pilgrim) Subject: Gravity Mouse 1.1 (source code) Date: Sat, 13 Nov 1993 23:33:23 -0500 (EST) Gravity Mouse will cause your mouse to be occasionally overcome by gravity. This INIT is free and is distributed under the GNU General Public License; this archive contains complete THINK C 6.0.1 source code and project files for the INIT. If you do not have FTP access, e-mail the author for a copy of the INIT, the source code, or a list of other programs by the same author. The address is f8dy@netaxs.com. This code demonstrates the basics of writing and installing a VBL. This code should work under any system, with any monitor, on all Macintoshes. Please report any bugs/comments/suggestions to f8dy@netaxs.com. Gravity Mouse 1.1 is copyright 1993, Mark Pilgrim, MerriMac Software Group. #### BINHEX halma-12-c.hqx **** From: f8dy@netaxs.com Subject: Halma 1.2 (source code) Date: Fri, 15 Jul 1994 01:22:29 -0400 (EDT) Halma 1.2 is a solitare board game in which you must move nine tiles from one corner of the board to the other in the minimum number of moves. 21 unique boards in all. This version fixes several technical bugs and revamps the help section interface. This archive contains the complete THINK C 7 project and resource files. Application also available; check ftp sites or e-mail f8dy@netaxs.com. Finger f8dy@netaxs.com for complete program list. Copyright (C) 1994, Mark Pilgrim. Please read enclosed file "GNU General Public License" for licensing details. #### BINHEX hcmdbutton-attachment-121.hqx **** From: hsoi@eden.com Subject: HCmdButtonAttachment 1.2.1 - A PowerPlant Class A Metrowerks PowerPlant inherited class that gives controls (LControls) a command-key equivalent. This allows for more keyboard navigation. For example, the traditional "Save before closing?" dialog asks to "Save", "Cancel" or "Don't Save". Save is typically the default key (return) and Cancel the cancel (escape), but there is no keyboard way to hit Don't Save. Enter HCmdButtonAttachment. With HCmdButtonAttachment, you can give any LControl a command-key shortcut. You can specify the key to be the first letter/character of the control's descriptor or it can be a character of your own arbitrary specification. You can also have the title of the control change to display the shortcut or not, and do so after a user-configurable amount of time. This archive includes the HCmdButtonAttachment sources, a custom CTYP file for use with Constructor 2.4 or later, and an example application to demonstrate the class. For complete information, please read the README file enclosed in the archive. Thanx, and enjoy! John C. Daub Hsoi's Shop #### BINHEX headlines-101-c.hqx **** From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy) Subject: Headlines 1.0.1 code Date: Mon, 23 Nov 92 9:22:20 EST This i