NSOpenGLView and CustomViews problems
NSOpenGLView and CustomViews problems
- Subject: NSOpenGLView and CustomViews problems
- From: Aaron Boothello <email@hidden>
- Date: Tue, 29 Mar 2005 17:28:49 +0800
Hey guys,
I'm having some unpredictable view behaviour in my application. I have a window with two different NSOpenGLView subclasses in it. One is a perspective view and the other is an Orthograhic view. Each have their own context, and i seem to be having some problem with drawing two them.
Each view shows the same model(data). So when i change the model in either view , i update the other view by calling [otherView setneedsDisplay:YES];
in my drawRect function,i check if the context exists, if it dosent i create it, then i attach the views context to itself, and proceed to do all my OpenGL drawing into the view.
The problem seems to be rather sporadic and i cant seem to find he bug in my code. After some use, of updating the views back and forth, the second view, theorthographic view, goes black and white. I cant seem to understand why. was wondering if anyone has experienced the same thing, and would like to know what they did to solve it.
Would really appreciate some help here.
Cheers,
Aaron.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden