The RaiseMan example program from the Big Nerd Ranch guide to Cocoa Programming for Mac OS X (4th ed.), translated to Swift.