Re: multiple OpenGL views in a Cocoa Application.
Re: multiple OpenGL views in a Cocoa Application.
- Subject: Re: multiple OpenGL views in a Cocoa Application.
- From: Jeff Disher <email@hidden>
- Date: Sat, 30 Nov 2002 03:52:29 -0500
Well, are you setting these up in IB? Views stored in NIB files
created by IB (except for the custom NSView) are not initialized by
calling initWithFrame: but by calling initWithCoder:. Also, do you
mean that you have one instance of each of the sub-classes (of which
there are two), or do you mean to say that you have one sub-class
instantiated twice?
Usually this kind of problem is an IB issue related whether or not you
created the views as NSViews or NSOpenGLViews. In either case, you can
later change their actual type to an instance of your custom class with
the inspector. The difference being the way that the views are
initialized at runtime when the NIB is loaded.
Hope that helps,
Jeff.
On Saturday, November 30, 2002, at 12:26 AM, Aaron Boothello wrote:
I'm making an application using Cocoa-OpenGL. i have 2 separate
subclasses of OpenGLView each having their own initWithFrame function,
but the second subclass never executes the code inside it's
initWithFrame function. any help/tutorials/examples would be
appreciated/
Thanks,
Aaron.
_______________________________________________
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.
Jeff Disher
President and Lead Developer of Spectral Class
Spectral Class: Shedding Light on Innovation
http://www.spectralclass.com/
_______________________________________________
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.