Re: Cocoa Open GL help
Re: Cocoa Open GL help
- Subject: Re: Cocoa Open GL help
- From: Raphael Sebbe <email@hidden>
- Date: Wed, 12 Sep 2001 22:36:09 +0200
It seems to me this thread is going to last forever ;-)
2 options (what we just discussed before):
- You use a CustomView for MyOpenGLView in IB and in this case
-initWithFrame: is invoked when the nib is loaded(*).
- You choose the actual subclass in the inspector from the dragged in
NSOpenGLView. In this case initWithCoder: is invoked when the nib is
loaded.
(*)But that is true that -initWithFrame:pixelFormat: is NSOpenGLView's
designated initializer and is the one to subclass (initWithFrame: is
implemented in terms of it).
Raphael
On Wednesday, September 12, 2001, at 09:32 PM, Peter Ammon wrote:
>
FYI, NSOpenGLViews are initialized from IB using initWithFrame:
>
pixelFormat:, not initWithFrame:. If you want to initialize it in the
>
init method, that's the one to override.
>
>
-Peter