Cocoa newbie - document-based Cocoa app with OpenGL
Cocoa newbie - document-based Cocoa app with OpenGL
- Subject: Cocoa newbie - document-based Cocoa app with OpenGL
- From: "John M Coggi" <email@hidden>
- Date: Thu, 21 Feb 2002 16:58:54 -0800
Hi all. I'm new to Cocoa so please excuse my ignorance. I recently signed
up to port a Windoze MFC app to OS X. This MFC app can have multiple
OpenGL windows representing different wireframe models. By clicking a
toolbar button, animation occurs in each OpenGL window. The problem is I
can't seem to get any OpenGL graphics to appear in my windows (I have an
NSOpenGL view in the window). I can write to other outlets in the windows,
but nothing in the OpenGL view. I'm pretty sure I've got my outlets set up
right. Also, I have a non-document-based version which works fine. Is
there something I'm missing with document-based Cocoa apps? In the
awakeFromNib() routine in the document code, I do all my OpenGL
initialization so every window is initialized when it is summoned from the
New menu. Is this correct?
Lastly, is there any *simple* sample code available with showing how to
draw OpenGL in multiple windows? Apple's "Modeller" app is way too
complicated for me at this time (plus it doesn't work correctly when
compiled under PB 1.1.1).
Thanks,
John Coggi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.