Monochrome: Richard Dawkins Blind WatchmakerUnits Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers
|
All Units
Album |
v1.1 Sept 1993
Changed file commands to Mac File manager
Removed Repeat/Until loop in DoClose
|
Biomorphs |
|
Blind_Watchmaker |
v1.1 Sept 1993
Disabled Mutation-Gradient menu item when segmentation off
Call WaitNextEvent if available, else systemTask/GetNextEvent
Remove Repeat/Until loop on save changes.
Added QuitConfirmed function and moved savechanges check there
Changed sleep time - when drift sweep is on, small time for bg
tasks; other modes give lots of bg time.
|
Engineering |
|
ErrorUnit |
Error message alert tools added for v1.1 for cases where we don't care about saving the bitmap |
Globals |
Original documentation:
v1.1 sept 1993
Made a start at cleaning up all these globals, but still a lot to do. I have removed a
couple of dozen variables which were just wasting memory, and moved others to
local variable status. For the most part, they need to be made into parameters or
file-scoped variables with unit initializer; this is too much work for now.
|
Initialize |
|
MacPascal |
Routines from the Mac Classic ToolBox used by all Watchmaker programs, with documentation from the 1985 edition of Inside Macintosh. |
Miscellaneous |
v1.1 Sept 1993
Changed Message procs to use Alerts
Removed PictMessage (never called), change Message calls to DisplayError
Added positioning to alerts and dialogs
Alert now uses STR# for closing, quitting, etc
Added several functions, for EOF and checking system (see below)
Validated the rect after RestoreOffscreen to prevent drawing twice
|
Pedigree |
Pedigree mode allows the user to draw out family trees.
|
StandardGetFolder |
StandardGetFolder.c
This little chunk o' code implements a way to let the user choose a
folder to save files in via a StandardFile Dialog.
Since the code uses the CustomGetFile function and depends on the use of
FSSpec records, it only works under System 7.0 or later.
And don't forget to include the custom dialog resources ( a 'DITL' and
'DLOG') in your project.
Portions of this code were originally provided by Paul Forrester
(paulf@apple.com) to the think-c internet mailing list in response to my
my question on how to do exactly what this code does. I've added a
couple of features, such as the ability to handle aliased folders and
the programmer definable prompt. I also cleaned and tightened the code,
stomped a couple of bugs, and packaged it up neatly. Bunches of work,
but I learned A LOT about Standard File, the File Manager, the Dialog
Manager, and the Alias Manager. I tried to include in the comments some
of the neat stuff I discovered in my hours of pouring over Inside Mac.
Hope you find it educational as well as useful.
Converted to Pascal by Peter N Lewis <peter@cujo.curtin.edu.au> Dec 1992
|
Triangle |
|
User_Interface |
(v1.1 Sept 1993. |
Generated by PasDoc 0.14.0.
|