I have Mac 10.6 and XCode 3.2.6 and I have yet to find any tutorial on getting the base OpenGL code to work properly via XCode. Do i go into interface builder and drag an NSOpenGL view onto my main window or do i do the custom view? Do i still have to put the original glut code in my main program or is there an NS* equivalent? Do the NSEvents go into the main program or should they be defined somewhere else?
I got the Cocoa for Programming and have looked at various other tutorials but they all date back to Leopard or before and some the Next Step API has been changed throughout all MAC OSX releases.
as one example my initWithFrame code:
pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes];
this doesn’t work as it gives me an error.
error: expected ‘:’ before ‘;’ token
I have successfully written an opengl application using GLUT specifically to handle all my events via the VI editor and a makefile which links up the opengl frameworks that i need but now i would like to move to XCode.
Any help, links or whatever else is appreciated. thanks!