• 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
creating custom views in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating custom views in IB


  • Subject: creating custom views in IB
  • From: Alex Golovinsky <email@hidden>
  • Date: Fri, 3 Aug 2001 11:50:36 -0400

Hello,
I need to set up a subclass of OpenGLView in IB and I used two different methods to do this:
A. I dragged NSOpenGLView from the views pallete onto the window, then in info went to the custom class tab and selected my subclass.
B. I dragged a custom view from the views pallete onto the window and in info, in attributes or custom class tabs selected my subclass.

Both methods generally speaking work, with some differences. When I use A, I'm able to select the color and depth buffers from the attributes pane in IB, which I like, whereas in B, the attributes pane is no different from the custom class pane.

And, this is strange, but when I use the method A and then override an event method, ie mouseDown, I cannot access the variables in the self class. Rather, I can access them but they all contain default values. This is very strange. When I use method B this does not happen.

Does anyone know why this is, or which method is preferable? I would like to both be able to choose OGL attributes and not get this strange behavior when overriding event methods.

thanks in advance,
Alex


  • Follow-Ups:
    • Re: creating custom views in IB
      • From: Henri Lamiraux <email@hidden>
  • Prev by Date: Re: Vectors?
  • Next by Date: NSImage questions from a newbie
  • Previous by thread: Problems with shared libraries...
  • Next by thread: Re: creating custom views in IB
  • Index(es):
    • Date
    • Thread