Apple Dashcode

Apple's Dashcode widget builder provides a nice library interface for viewing the parts you can include in your widget, and a code library to view snippets.

http://developer.apple.com/tools/dashcode/