Bill Catambay who runs Pascal Central has mentioned that a new demo is available for Pascal developers who work on MacOS X...
<blockquote>

Christian Franz just donated a new Pascal source code package for OS X which is now available on Pascal Central. This is a CTRL Demo package, that includes project files, source code, and a running executable.

The Demo application installs two custom controls into a window. The source 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.

Program demonstrates:
- Carbon Custom Controls
- Carbon Event Handlers for windows and Applications
- Carbon Commands

</blockquote>
You can grab the demo and source code from their MacOS X page.