Example Code
Drawer example creates a NSDrawer and allows the user to modify its attributes.
Font browser example lists all the fonts on your machine and allows you to see an example of each. This is also a good example of how to use NSTableView.
NSOutlineView example is a simple example of how the outline view is used.
A window that is oval-shaped is a cute example of how to create an oddly shaped window.
An example of using C++ in a Cocoa application draws from inside a C++ object using CoreGraphics.
A simple toolbar example shows how to create a toolbar, make it configurable, and disable toolbar items.
The code presented here is to help us all to better understand Mac OS X. If there is anything here that is useful to you, please use it. Big Nerd Ranch, Inc. is not responsible for anything bad that might happen as a result of that use, OK?