Below are some complete
Pascal projects, including source code, resources, project file and running application.
This source code is provided as-is, free of charge. If you have short questions about
any of this code, you may e-mail the author, but please do not expect a tutorial
on how to program.

NOTE: Merlin's
Tower is now being used as a repository for Free Pascal (FPC) projects as well. "FPC"
will be listed as a highlight for all FPC contributions.

Posted: 02-11-09This is a
FPC wrapper for the GNU regular expressions library. I didn't include a demo program
because all that would contain are example expressions which one can find anywhere.
I'm happy that after all my headache trying to get regular expressions in Pascal
everyone can now use this.

Posted: 11-02-08SkelView
is intended as an addition to View Manager (and thereby TransSkel). It is a simple
interface to a plain HIView, using callbacks for drawing, mouse clicks and keydowns,
in order to implement simple views. The big difference to ViewManager is that SkelView
is for building custom views in a simple way rather than handling the existing ones.
Instead of implementing a big event central, you write a few callbacks and pass them
to SkelView.

Posted: 11-02-08Application
framework using the Carbon interface. Simplifies event processing, menus etc. It
includes add-on units like TransDisplay (for logging) and ViewManager (for HIView
management). Originally written for very early MacOS, now modernized to modern Carbon.
Includes a number of demo programs.

Posted: 7-9-08HICascadingView
creates a HIView like that found in the Finder's Get Info window. This example is
written in MW Object-Pascal, and includes project file, source code, and demo application.

Posted: 7-9-08This
is a small demo using HIViews which opens a window and sets the panes for split views.
This example is written in MW Pascal, and includes project file, source code, and
demo application.

Posted: 7-14-07Lookalike
for the old Skel demo, but rewritten from the ground up for modern Carbon. Carbon
Events, nibs, menus. A reasonable skeleton program to build from, including stubs
for the most basic event types.

Posted: 7-14-07Graphics
demo with attitude. In particular it is a CG demo covering more than the usual trivial
rectangles, including loading images from files. It also shows, for the record, that
QuickDraw is not as old-fashioned and uncapable as some people try to tell us.

Posted: 1-30-07This
is a small sample program that demonstrates accessing your iSight through the SequenceGrabber,
and how to apply some video effects in real-time. Includes sample app that requires
a video camera, as well as source code.

Posted: 8-13-06This
demo is based loosely on Apple's Objective C OpenAL Demo, and sports four audio sources
and one listener. Click with your mouse to re-position the listener. It includes
the source code, application, and package bundle containing resources.

Posted: 4-30-06Demonstrates
use of mixed QuickDraw and CoreGraphics. Also shows how to use Rotation, Blend Modes,
Transparency, and mirroring an image. This XCode 2.1 demo project contains source
code written in Free Pascal to demonstrate simple use of CoreGraphics in a Window
along with QuickDraw.

Posted: 11-30-05Demo
application that installs two custom controls into a window and shows you how to
handle direct control clicks and commands sent by the control. When you click into
the control, you will be presented with a color picker. After picking a color, the
control will send a command to your application.

Posted: 10-2-05This
project uses GWorld mappings and linear interpolations between starting and ending
colors (click on colored rectangles in bottom right corner to get new random starting
and ending colors or use color picker to select these colors). Click on 'Copy from
GWorld' button to see a gradual transition from one color into the other. Includes
source code, executable, and CW Pro 7 project files.

Posted: 4-17-05Makevc
is a Pascal program to make vCards, and is useful for converting a contact list or
address book from an older program. Makevc does a good deal of recognizing (e.g.,
pulling street, PO Box, zip, country, etc., out of a unitary, undifferentiated address
field. This project was compiled with GPC and Dr. Pascal, and includes source and
executable (runs in Terminal mode on OS X and DOS mode on Windows).

Posted: 2-15-05This
is a sample Pascal project that uses the GNU Pascal plug-in for CW Studio 8. This
program displays a window with random walk paths drawn on screen, and includes source
code, project, and executable.

Posted: 2-15-05This
is a sample Pascal project that uses Codewarrior Pro 8 with Metrowerks Pascal. This
program is a Pascal version of Conway's "Game of Life", and includes source
code, project, and executable.

Posted: 7-20-04Samples
that show how to call Mac OS X routines that are not in Carbon (Codewarrior and GNU
Pascal), and how to write a Mac OS X framework in GNU Pascal (including integration
with Codewarrior). Includes source code and project files.

Posted: 7-17-04In
response to the recent query about arrays, here is a library which manages arrays
of various sorts, including arrays of objects, and also has facilities for performing
FFTs and plotting data. It includes the source code and project file.

Updated: 6-24-04This
sample is mainly an illustration of the use of CopyBits in Carbon. It also shows
how to handle movable dialogs and how to set their font. Project has been compiled
with CodeWarrior 8.3 in Mac OS 10.3.2, and includes source code, project files, and
executables for both OS 9 and OS X.

Posted: 3-4-03Shows how
to use OpenGL camera, and some 3D movement transformations. Also shows some basic
vehicle effects such as acceleration, inertia, and friction. Includes project file,
executable and source (requires OpenGL libraries).

Posted: 7-31-02This project
contains the Pascal converted code for the GrabBag sample found in the CarbonLib
1.6 GM SDK. This conversion is not from Apple but from myself as an indepent contractor
to help any Pascal programmers take full advantage of Carbon.

Posted: 9-26-01This is a
CodeWarrior Pro 4 project showing how to create a game in Pascal using the Carbon
environment (it works with MacOS 9.0.4, 9.1 and 10.0.4). Includes source code, project
file, and classic OS 9 executable.