title: Initialize window code Mac OS X
body: <p>I'm currently reading "the red book" for learning OpenGL properly, and in one of the first examples, the author writes a line that says "InitializeAWindowPlease();" as a place holder for the code that will make a window to draw the OpenGL content in. </p>
  
  <p>Since I'm using <a href="http://en.wikipedia.org/wiki/Xcode" rel="nofollow noreferrer">Xcode</a> for my programing, I know that I "get" a window to work with automatically (and that I have to make my own OpenGL view in interfacebuilder).</p>
  
  <p>How can I make this with pure code? </p>
  
  <p>I'm trying to learn programming, and I'm not to happy about taking "shortcuts" all the time.
  How can I make a window to draw my openGL stuff in? </p>
  
  <p>With Objective-C and C code I would love to see it. My goal is that I can make it without opening interface builder at all:)    </p>