Re: Cocoa Open GL help
Re: Cocoa Open GL help
- Subject: Re: Cocoa Open GL help
- From: Raphael Sebbe <email@hidden>
- Date: Tue, 11 Sep 2001 15:11:30 +0200
objects in nib files are inited with :
-initWithFrame: (NSView subclasses)
-init (other objects)
So, you should override initWithFrame, I believe.
-awakeFromNib, on the other hand is invoked after all nib objects have
been brought to life.
Raphael
On Tuesday, September 11, 2001, at 02:29 PM, Brent Gulanowski wrote:
Lesson 2 was ported already to Cocoa, check that out. It's very
primitive,
but it will get you started.
Teapot uses NSTimers to call the rendering loop. You can also try
calling
-performSelector:withObject:delay: at the end of your rendering method
(have
it call itself with a nil object, it works fine).
I'm personally having trouble figuring out why my -init method for
MyOpenGLView isn't being called. It's a nib object; should I put init
stuff
into awakeFromNib? I'll probably find the answer somewhere in Vermont
Recipes but a hint would be nice :)