cocoa - Adding more number of View and NSOpenGLView in NSWindow -
i need add more number of nsview along more number of customised nsopenglview in window , wants shuffle array of views. if set base view setwantslayer:yes initially, can't draw openglview if set setwantslayer:no, can draw openglview nsview goes beyond openglview. like,
in myopenglview.m
myopenglview = [ [ myopenglview alloc ] initwithframe:frame_ colorbits:16 depthbits:16 fullscreen:false ]; [self addsubview: myopenglview];
then try add 1 more view on window
customview = [[customview alloc] initwithframe:[self bounds]]; [self addsubview:customview];
now custom view goes beyond myopenglview. how fix this?
edit:
screenshot of problem
Comments
Post a Comment