A collection of programmatic how-to code for each cases to write a Cocoa GUI app.