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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -