Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenGLView and CustomViews problems



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.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.