Skip navigation.
 
mlRe: multiple OpenGL views in a Cocoa Application.
FROM : Aaron Boothello
DATE : Sat Nov 30 21:33:38 2002

1. yeah i am setting up the views in IB.. just the interfaces though,
all the code associated with the views are in their respective header
and .m files.
2. i did create seperate subclasses for each view (view1 and view2)
which are subclasses of NSOpenGLView in IB. I did not instantiate the
subclasses though....just specified to the view widgets that they each
had a different class ("custom class" from info window).

thanks for your feedback. i will look into initWithCoder, but what do
you mean by  "you can later change their actual type to an instance of
your custom class with the inspector. " ?

Aaron.

On Saturday, November 30, 2002, at 03:52 AM, Jeff Disher wrote:

> 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_removed>
>> 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_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlmultiple OpenGL views in a Cocoa Application. Aaron Boothello Nov 30, 06:26
mlRe: multiple OpenGL views in a Cocoa Application. Jeff Disher Nov 30, 09:52
mlRe: multiple OpenGL views in a Cocoa Application. Aaron Boothello Nov 30, 21:33