iOS Source Code:

randompic - an iOS sample program to display a random picture chosen from the user's photo library.
BlackAndWhite - an iPhone sample program that converts a color image to black and white, either by showing a single channel, or a mix of channels.
Blink - Full-screen animated eyes for Halloween. If you've got dual monitors, it will put one eye on each.
Countdown - An attractive seconds countdown timer that gets your attention when the timer fires.
SpringsStrutsRotation - an iPhone sample program that shows using springs and structs to adjust a user interface when a phone is rotated from landscape to portrait mode.
iOSLogToKML - Export position logs from iOS backups to Google Earth.

Macintosh Source Code:

JuliaSet - A Julia Set Explorer
MakeupMirror - A quick little program for getting a glance at yourself. Requires a Macintosh with a video camera.
TimeTracker - A Macintosh program for tracking how you use your Mac. This is just a prototype. It appends to a text file in your Documents folder with a line showing what program you were using, and what the title of its front window was, checking every minute. OS X 10.4 & 10.5, PowerPC & Intel.
WeightDiary - A program for tracking your weight. A companion for John Walker's The Hacker's Diet. OS X 10.4 & 10.5, PowerPC & Intel.
Cocoa Fragments - Useful small chunks of Cocoa source code.
Ticker - A source code example of a tickertape view in Cocoa. [20K]
UndoableCocoaBindings - A generic, reusable, undoable NSMutableDictionary that is compatible with Cocoa Bindings
DropNFiles - A source code example of an app that is a drop destination. Drop files on it from the Finder, and it tells you how many, and their paths.
2 Win - A source code example of an app that uses Interface Builder and Cocoa Bindings to have two windows, that both manipulate the same underlying model object. main.c has one line of executable code. AppDelegate.m has 2 lines of executable code. For the rest, open the nibs in Interface builder and look at the classes and connections of all the objects.
CGImageCarbon - An example of drawing an array of shorts as an image in a window, using Carbon.
Server Side Cookies - A CGI, written in C, that implements something like web browser cookies, but stored on the server, not stored in the browser. With sample Javascript code to use it.
Turbozen Tiny Lisp - A small simple lisp interpreter that is easy to connect to Objective-C.
GLPane - OpenGl for PowerPlant - sample code for an example tutorial of using OpenGL with Metrowerks' PowerPlant in OS 9 and OS X. Also includes a .mcp file for Classic compilation. [74K]
MLTEDoc - a minimal PowerPlant example that uses LMLTEPane (PowerPlant's wrapper for Apple's MLTE MultiLingual Text Editor) to open a text file or an rtf file and display it in a window. Codewarrior Pro 9.3, CFM [40K]
MLTEDoc8 - As above, a minimal PowerPlant example that uses LMLTEPane (PowerPlant's wrapper for Apple's MLTE MultiLingual Text Editor) to open a text file or an rtf file and display it in a window. This one is for Codewarrior Pro 8.3, CFM [40K]
unicodetextedit - James Walker did a great job, but he left out one minor point. I took his code and edited it so that you can take an existing program, and change one line in RegisterClasses() and get unicode aware edit controls from all the LEditTexts in your existing PPobs. Constructor still thinks they are LEditTexts, but at runtime they reanimate to CUnicodeEditTexts.
I've also incorporated Brett Wood's CMultipleUndoer class, so the example has multiple undo in a multi-field dialog box: you can tab from field to field making changes, then undo as many as many as you like, with the focus moving back from field to field, then redo as many as you like.
I've compiled it with 8.3 and with 9.3, and it appears to work with either. Codewarrior Pro 8.3 or 9.3, CFM [40K]
Pseudoko - A simple number puzzle matching game. A good example of Key-Value Coding, NSUndoManager and an NSMatrix of NSTextFieldCells coming together. It also lets you create, solve, and save Sudoku puzzles. Xcode 2.4. M.I.T. style license.

[61K]
Scriptable Sketch - A hacked copy of Apple's "Sketch" Cocoa example to add a .sdef file and recordability. Xcode 2.2. [200K]
OpenGl Test - A simple Cocoa project to draw an OpenGL pane in a window. Xcode 1.5.
OpenGl Movie OS X - sample code for an example tutorial of using OpenGL to draw a movie onto a texture buffer that is then mapped onto some OpenGL geometry. My Macintosh version of this NeHe tutorial.
OpenGl Movie OS9 - older sample code for that same example tutorial of using OpenGL to draw a movie onto a texture buffer that is then mapped onto some OpenGL geometry.
OpenGl PowerPlant OS X - sample code for a simple example of using PowerPlant's CGLPane in OS X with Metrowerks Pro 9, Mach-O to draw textures.
DynamicTabs - A simple PowerPlant example of creating and destroying tabs of a tab control at runtime. [44K]
Rot13 - a simple droplet that takes text files and copies them to rot13 versions of themselves. With Source code. [32K] Caution: this still uses FSSpecs. If you want an example of a droplet that uses FSRefs, look at yEnc TZ.
sprites003 - The beginnings of a small, simple, sprite package that runs on all Macs. A corrected version of micjuneau@gmail.com (Micjuneau)'s work from the usenet newsgroup thread "Horrendous C Dereferencing Question" This is just the source code, and a compiled 68k binary. No project. [28K]
ViewColumnDivider - Version 1.5 (For Codewarrior version 9.4) of my PowerPlant example:

In the upper left quadrant is a table of cells, each cell having a label, and editable text field, and a checkbox, with field-to-field tabbing and autoscrolling, and a movable pane divider that controls the ratio of space given to the labels over the rest of the cell. You wouldn't want to use this to manage more than a few hundred cells, but it is great for small complex tables. Here is a screen shot:

WTextView - The current version (WText1.0.3a7.sit) of the WTextView PowerPlant wrapper class for WASTE, with its demo app. [568K]
WTextView - The previous version of the WTextView PowerPlant wrapper class for WASTE, with its demo app. [768K]
CarbonSpelling 1.0b1 - Richard Buckle's helper class, to do incremental spelling checking under OS X. [254K]
CarbonSpelling 2.0 - Jérôme Seydoux helper class, to do incremental spelling checking under OS X. [280K]
yinglish - Transliterate English into Hebrew letters, for debugging localization. [15K]
Windows Source Code:
rr1 - a simple infrared remote control on your computer's monitor. It works with the Red Rat 3 infrared remote USB device. Mostly useful as an MFC example of controlling the Red Rat 3. If you are not a programmer, you will be disappointed. If you are a programmer, you'll find this to be a clean, well organized starting point. The next step for me is integration with an existing Microsoft Access database, a catalog of video tapes. (Free, Open Source: C++ source code.)

Page last modified 5/18/2014