creating custom views in IB
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