Apple publishes Sample Code for Dashboard. These samples demonstrate how to use various Dashboard and Web Kit technologies within the context of a widget. You can find the Dashboard sample code at:
/Developer/Examples/Dashboard/Available on disk after you install the Xcode Tools, the Dashboard examples available at this path provide the most complete set of samples available. To get the latest examples, install the Xcode Tools 2.2, available for download from http://connect.apple.com/.
The ADC Reference Library houses additional sample code, including the most up-to-date versions of sample widgets included with Xcode.
Last updated: 2006-01-10