Texture Fails to Appear

In an attempt to figure out how to texture-map an OpenGL object using XCode 2.0, I created a very simple 2D OpenGL view showing a 4-sided GL_POLYGON textured with a .bmp image. Sadly, the rectangle appears, but no texture.

Much of the code was borrowed from an OpenGL example program, "GLSLShowpiece", included in the Developer folder. Interface Builder was used to create the custom class NSOpenGLView, "TextureMapMain". I added the OpenGL and Glut frameworks to the project's "Frameworks", "Linked Frameworks" section. A .bmp image was added to "Resources".

There is no "(id)initFromFrame:" in this program. NSOpenGL views will not activate initWithFrame by themselves, according to Apple. Anyway, OpenGL seems to work without it.

There is little to be found out there on WWW about OpenGL and Macs, so I am willing to bet we have all visited the NeHe website and tried out the MacOSX download of Lesson06 -- right? That's the one where the dark blue spinning cube shows up as a bright red spinning cube. I modified the image and texture loading part of that program with the same code used in the "- (void)loadTextures" method shown below, and it worked like a dream. So, I know that part of the code works.

So, what is the problem and how am I going to make that darned texture appear?