Safe From The Losing Fight: How to implement a basic bitmap.

Andy Finnel shows how to make a basic little cocoa paint app, which is backended to a CGBitmapContext. Cool. He's got a downloadable app as well.