iOS Source Code:
- an iOS sample program to display a random picture chosen from the user's photo library.
- an iPhone sample program that converts a color image to black and white, either by showing a single channel, or a mix of channels.
- Full-screen animated eyes for Halloween. If you've got dual monitors, it will put one eye on each.
CountdownSpringsStrutsRotation - 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.
- An attractive seconds countdown timer that gets your attention when the timer fires.
- Export position logs from iOS backups to Google Earth.
Macintosh Source Code:
- A quick little program for getting a glance at yourself. Requires a Macintosh with a video camera.
- 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.
- A source code example of a tickertape view in Cocoa. [20K]
- A generic, reusable, undoable NSMutableDictionary that is compatible with Cocoa Bindings
- 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.
- 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.
- 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.
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.
- 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]
- 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]
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]
- 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.
- A hacked copy of Apple's "Sketch" Cocoa example to add a .sdef file and recordability. Xcode 2.2. [200K]
- 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.
- A simple PowerPlant example of creating and destroying tabs of a tab control at runtime. [44K]
- 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
- The beginnings of a small, simple, sprite package that runs on all Macs.
A corrected version of firstname.lastname@example.org (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]
- 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:
- The current version (WText1.0.3a7.sit) of the WTextView PowerPlant wrapper class for WASTE, with its demo app. [568K]
- The previous version of the WTextView PowerPlant wrapper class for WASTE, with its demo app. [768K]
- Richard Buckle's helper class, to do incremental spelling
checking under OS X. [254K]
- Jérôme Seydoux helper class, to do incremental
spelling checking under OS X. [280K]
Windows Source Code:
- Transliterate English into Hebrew letters, for debugging localization. [15K]
- 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