Now using OpenGL as a Cocoa application. Note that my previous work, “OpenGL and GLUT with Xcode”, is not a Cocoa application.
The source code is here: https://github.com/jh1ood/OpenGLXcode.
You can find the original form of the program in “OpenGL Programming Guide for Mac”.