The CustomFormatter sample code demonstrates how to create and use a custom formatter.
This sample requires OS X 10.4 or higher.