Hawkeye_a
2005.08.13, 09:05 AM
Hey guys,
first post, but ill dive right into it.
My Cocoa+OpenGL application has a main window with 4 NSOpenGLViews in each corner. Each NSOpenGLView has an NSOpenGLContext associated with it. I have builtin the ability to 'maximize' any of the 4 NSOpenGLViews within the window by:
-getting the width and height of the other 3 views to 0
-setting the width and height of the view being maximized to the size of the window
(The size of the NSOpenGLVuews are changed using [self setFrameSize:newSize];)
Now, here's the problem, and i'm at my witts end trying to sole it.
I launch the program, and proceede to maximize one of the 4 NSOpenGLViews.
works fine. then i resize the entire window and the maximized view changes to one of the other 3 views(the same one everytime).
Percularily, this problem does not occur IF, after launching the program, i resize the window initially, and then maximize one of the views. it all works fine. Something is going on when i resize the window, and i dont know what its doing that screws up my maximized view.
If anyone can shed some light on this, it would be much appreciated.
Cheers.
first post, but ill dive right into it.
My Cocoa+OpenGL application has a main window with 4 NSOpenGLViews in each corner. Each NSOpenGLView has an NSOpenGLContext associated with it. I have builtin the ability to 'maximize' any of the 4 NSOpenGLViews within the window by:
-getting the width and height of the other 3 views to 0
-setting the width and height of the view being maximized to the size of the window
(The size of the NSOpenGLVuews are changed using [self setFrameSize:newSize];)
Now, here's the problem, and i'm at my witts end trying to sole it.
I launch the program, and proceede to maximize one of the 4 NSOpenGLViews.
works fine. then i resize the entire window and the maximized view changes to one of the other 3 views(the same one everytime).
Percularily, this problem does not occur IF, after launching the program, i resize the window initially, and then maximize one of the views. it all works fine. Something is going on when i resize the window, and i dont know what its doing that screws up my maximized view.
If anyone can shed some light on this, it would be much appreciated.
Cheers.