• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multiple OpenGL views in a Cocoa Application.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple OpenGL views in a Cocoa Application.


  • Subject: Re: multiple OpenGL views in a Cocoa Application.
  • From: Aaron Boothello <email@hidden>
  • Date: Sat, 30 Nov 2002 15:33:38 -0500

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@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.
_______________________________________________
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.

  • Prev by Date: Re: Piping Strangeness
  • Next by Date: NSPDFImageRep vs. NSProgressIndicator
  • Previous by thread: Re: multiple OpenGL views in a Cocoa Application.
  • Next by thread: [ANN] Vermont Recipes official Web site
  • Index(es):
    • Date
    • Thread