Objective Pascal Examples
To compile these projects you must install the latest version of FPC from SVN (currently 2.5.1) and PascalGladiator 0.7.1 with ObjP syntax support. If you prefer Unix you can use the installer shell script or there is a install application available (see below).
Objective Pascal Installer
To install using a Mac application download the installer and follow the first 2 steps and optionally parse the iPhone headers. The installer itself was made using Objective Pascal and performs the same steps found in the shell script. You can also continue to use the installer to upgrade your version of FPC if you need.
AppKit/Foundation Examples
- CircleView. Pascal port of Apple's CircleView example by Ryan Joseph. Shows how to use the components of the Cocoa text system to draw a custom NSView.
- OutlineView. Pascal port of Apple's OutlineView example by Ryan Joseph. Shows the most basic implementation of NSOutlineView using the file system as a data source.
- MiniBrowser. Pascal port of Apple's MiniBrowser WebKit API example by Ryan Joseph. This requires at least revision 13831 of WebKit headers from SVN.
- NIBWindows. This was an example project I made but corrected by Gorazd Krosl to more Cocoa-ish. ;)
- PLuaTerminal. Simple terminal for the lua programming language by Gorazd Krosl.
- TemperatureConverter. Pascal version of the Apple Cocoa tutorial application for beginners by Gorazd Krosl.
- FPCEventManager. Simple CoreData document based application, a port of Apple's EventManager by Gorazd Krosl.
Library Examples
- RegexKitLite. Pascal port of RegexKitLite by Gorazd Krosl. A framework is supplied for linking which must be placed inside the applications bundle in the Frameworks folder. The example contains only a single unit which is the complete interface to the framework.
iPhone Examples
These examples require the iPhone SDK (from Apple) and translated Pascal interfaces to run (which I can not distribute, see the script above). As of version 0.7.2 PascalGladiator supports a target for compiling bundles which will run in the iPhone simulator but Xcode and certificate ($99) is still required for device targets.
- iArkanoid. This is a test game by Dmitry 'skalogryz' Boyarintsev which shows how to make a basic iPhone app using CoreGraphics.
Framework Parser
The framework parser is a PHP script which translates Objective-C headers into Objective Pascal units. The parser is still not 100% accurate however even after much development but can still be used to batch convert entire frameworks which can then be polished by hand afterwards to achieve good results. Download the parser here which contains basic documentation and an example of how to parse AppKit.framework.
© 1998-2010 The Alchemist Guild


