FindPanelLayout demonstrates how code in the controller layer uses the API. It lays out a window that is fairly complex with classic Cocoa layout (if the strings are dynamic, as they are across localizations), and straightforward with constraints. This example illustrates use of the visual format language, content hugging priority, RTL and localization support, automatic window minimum size, visualization for debugging, and the concept of ambiguity as something that can go wrong. This is a good first sample to look at.
This sample requires OS X 10.7 or higher.