There are some good vanilla examples in the following path:
/Developer/Examples/GLUTExamples
Though, when I've programmed in cocoa I see that there is an NSOpenGLView. But I'm not exactly sure how to use it. Funny thing is that you can make a java subclass of it.....how would that work?