Re: makeWindowControllers
Re: makeWindowControllers
- Subject: Re: makeWindowControllers
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 2 Jul 2003 16:07:26 -0700
On Wednesday, July 2, 2003, at 03:23 PM, Brent Gulanowski wrote:
I see what you're saying, but I had -createTextures as a private
method, to signify that it was not supposed to be called at any time
other than when the document is created. If I expose it, what is a
good way to make it clear that the method is not for general use? In
the interests of maintainability.
Implement and call a public "setUpDocument" method which in turn calls
createTextures? :-)
I'd prefer to create the textures earlier, except that the view and
its OpenGLContext must exist first (or crashola), and that won't
happen until after the Nib is loaded.
Ah, OK, that makes things clearer, however
For now, I'm just invoking -createTextures from -makeWindowControllers
(after calling [mainWindowController window] to force nib loading). I
don't like it, so a better solution that is cleaning and more in
keeping with the document architecture would be desired. There are
simply some places where OpenGL and Cocoa don't mesh seamlessly, so
far.
now I'm less clear. I'm not sure why you don't like invoking
createTextures from makeWindowControllers? The document must create a
window at some stage... I suspect I'm missing something?
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.