This page is a work in progress, for more stuff by me, see my old source code page.
Two classes for playing back sound using the AudioQueue/SystemSound APIs, which try to be easy to drop into code originally written to use NSSound. These classes were originally written for use on the iPhone, but should also work on Mac OS X.
A little study on how one could make window management more flexible. This class lets you define areas of a window that can be "torn out" into their own windows, or moved into another window simply by dragging and dropping.
This allows both for the proliferation of windows that I personally prefer, as well as for stashing all of the "torn out" elements into a single window for those who prefer that.
An NSView that displays a file path. This looks kind of like how Sherlock displays the location of a file or like NSPathControl. Basically you get each folder's display name with its icon in front of it, and little grey triangles between them, and you get the icon of each file or folder and its display name.
If the path is too long, this takes items out of the middle and displays an ellipsis character (...) instead.
You can also right-click or control-click on this to get a contextual menu that contains "Reveal in Finder" and "Show Real Names" menu choices. Real names displays the actual path, starting with "/", and using the actual file names instead of their display names. As a shortcut, double-clicking this view is the same as "Reveal in Finder".
Finally, this also lets you hook up buttons to the view to let you choose an existing, or new file or folder name andÂ you can specify a placeholder string.