Carbon Balls is a simple application that creates a window and allows the user to place a "ball" inside it by clicking in the window area.
Not very impressive, but there`s enough in the code to learn about windows, about boxes, the event manager differences under Classic OS and OS X, how to determine at run time which OS we`re running under, and many other things.