On Oct 12, 2009, at 12:04 PM, Kyle Sluder wrote:

This is typically where the controller layer would come in. A controller-layer object would know of the GL context and of the insertion/removal of objects in the MOC, and create resources accordingly.

I think I can perhaps see light at the end of the tunnel. My model objects are controlled by a NSObjectController or NSArrayController instance. So I would subclass these and add the required code to setup and teardown the required OpenGL resources. Still the draw method is in the managed object model class and it needs to know about the OpenGL resource objects created in the controller. Hum ... still thinking.

Richard

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to