Black window openGL

I am trying to get working a simple Hello Triangle app in OpenGL in Xcode, but all I get is a black window when building. The tutorial is on:
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/
I already pasted their sample code in my program, but still a black screen. Does somebody know what the problem is?
Topic archived. No new replies allowed.