News Code Other Stuff

License

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.

Andreas

Comments (6)

Zip Icon AMButtonBar

Create a bar of buttons, similar to those in iTunes 6 or in the Finder search pane.

Button Bar Sample

download[Download ButtonBar.zip — 2007-04-03 — 59 KB]

Comments (1)

Zip Icon AMCollectionView

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.

Collection View Sample

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.

download[Download AMCollectionView.zip — 2009-02-10 — 164 KB]

Comments (6)

Zip Icon AMIndeterminateProgressIndicatorCell

Indeterminate progress indicator cell. Will work at any size.

Progress Indicator Cell

Also included is a controller class for table columns with progress indicators. (screen shot)

download[Download ProgressIndicatorCell.zip — 2009-02-08 — 65 KB]

Comments (1)

Zip Icon AMPreferencePane

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.

Tigger uses these classes for it's plug-ins. (screen shot)

download[Download AMPreferencePane.zip — 2006-02-10 — 93 KB]

Comments (2)

Zip Icon AMRemovableColumnsTableView

Adds a facility to NSTableView that lets you easily hide and show columns.

download[Download AMRemovableColumnsTableView.zip — 2007-03-03 — 88 KB]

Comments (1)

Zip Icon AMRollOverButton

Rollover buttons highlight when you move the mouse pointer over them. The appearance is widely configurable.

Rollover Button Samples

You can also attach a menu which will be indicated by a small triangle inside the button.
Now comes with an Interface Builder 3.x plugin.

download[Download RollOverButton.zip — 2008-05-02 — 146 KB]

Comments (23)

Zip Icon AMSerialPort
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.
The project is now hosted on Sourceforge.

download[Download AMSerialTest.zip — 2009-09-29 — 40 KB]

Comments (0)

Zip Icon AMShapedButton
A subclass of NSButton that supports irregular shaped buttons. I did this to implement a directional arrows control like in Apple's DVD player. This is not normally possible with standard buttons since those would overlap.
Apart from that you get a category to NSImage that returns a tinted version of an image.

download[Download ShapedButtonTest.zip — 2005-05-05 — 103 KB]

Comments (0)

Zip Icon AMShellWrapper
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.

download[Download AMShellWrapper.zip — 2004-08-13 — 44 KB]

Comments (0)

zip Icon AMToolTipTableView

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.

Note:
Apple added this functionality to AppKit in Mac OS X 10.4. See the AppKit Release Notes for Tiger.

download[Download AMToolTipTableView.zip — 2002-10-18 — 4 KB]

Comments (0)

Zip Icon AMURLLoader

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.

download[Download AMURLLoader.zip — 2007-03-03 — 49 KB]

Comments (0)

Zip Icon AMWindow

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.

download[Download AMWindow.zip — 2007-03-03 — 4 KB]