All of my source code on this page is available under the BSD License.
Some archives may contain code from third parties that may have different licensing conditions. Please read the accompanying documentation.
Additionally, in case you use some of my code in your application, it would be nice if you gave me credit in the docs or where you feel it's appropriate. Thank you.
- Help Viewer
This iOS project lets you flip through static HTML pages using an UIPageControl.
As the name implies, I wrote this to include help pages into my iOS app.
Latest version with support for iPad and landscape orientation.
- CheckerboardColor Category
A small NSColor category to create a pattern color like the one shown here.
The demo project also includes a simple NSView subclass to draw a view filled with a single color.
AMCollectionView is used to display a vertical list of items.
The display of each item is determined by a prototype item and a content object.
While AMCollectionView is somewhat similar to NSCollectionView, it has a lot less features.
On the positive side, it's compatible with Tiger and you get the source.
If you are able to target Lion, you may want to use a view based NSTableView instead. See Table View Programming Guide — View-Based Table Views.
This is an NSWindow subclass, made to display a floating image.
The window will ignore any user input. But you can move it around programatically and even have it track the current mouse position.
Indeterminate progress indicator cell. Will work at any size.
Also included is a controller class for table columns with progress indicators. (screen shot)
This set of classes and protocols is used to build, organise and display preference panes. The preferences window allows the same kind of display and sorting of panes as Apple's System Preferences. Preference panes may be build in to the application or provided as loadable bundles.
Example code is included.
Adds a facility to NSTableView that lets you easily hide and show columns.
As of 10.5 you can simply hide table columns. See NSTableColumn Class Reference — setHidden:.
Rollover buttons highlight when you move the mouse pointer over them. The appearance is widely configurable.
You can also attach a menu which will be indicated by a small triangle inside the button.
The latest version was restructured and is compatible with Lion. Design your buttons with the Button Builder. For more information see the included readme.
- A collection of classes to access serial ports.
This code is originally based on the Serial Port Sample from Apple.
Credits to Nick Zitzmann (www.chronosnet.com) for the added/removed port notifications and Sean McBride for helping with the API redesign as well as the implementation and testing of all new code.
As of 2015-12-04 the project is now hosted on GitHub.
- Based on TaskWrapper from Apple's Moriarity sample code, use this class to run commandline tools from your application. Connect your own methods to stdout and stderr, get notified on process termination and more.
This subclass of NSTableView allows you to display different tool tips for each cell. Change your table view's class to AMToolTipTableView, add one additional method to your data source and you are done.
Apple added this functionality to AppKit in Mac OS X 10.4. See the AppKit Release Notes for Tiger.
After experimenting with NSURLRequest/NSURLConnection I decided that those classes are still too complicated to use. So I wrote AMURLLoader which does all the work. You just create a loader and receive the result when it's finished. The sample app retrieves the favicon for a site.
A small NSWindow subclass that implements an improved zooming behaviour and makes it easy to allow or deny zooming and/or resizing of a window. If zooming is not allowed, the zoom button will be disabled. Also, the resize indicator will be added or removed as required.