Re: Core Data with OpenGL
Re: Core Data with OpenGL
- Subject: Re: Core Data with OpenGL
- From: Richard Somers <email@hidden>
- Date: Mon, 12 Oct 2009 13:13:29 -0600
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@hidden)
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:
This email sent to email@hidden