hi there, i'm designing a simple engine for a small app i'm developing and would like to render some opengl in the interface. designing my engine, i would like to have all the different components to inherit from one main entity class that provides many engine-specific functions and data. problem is objective-c doesn't allow multiple inheritance and cocoa opengl api - or any cocoa viewport drawing method for that matter - implements opengl rendering by subclassing NSView or NSOpenGLView.
so my question is whether it's possible to draw to either of the above classes without subclassing them - by having my viewport-rendering class use one of them as an ivar - and without resorting to the other OpenGL APIs - CGL or AGL? i know categories and protocols provide a way around multiple inheritance, but i would lose the engine-specific data in addition to super class message propagation. i have done some research but found very little out there regarding rendering engines in objective-c or cocoa, and i'm also still a rookie in cocoa land. thanks in advance for any help, mirage3d _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com