Re: does nib call init?
Re: does nib call init?
- Subject: Re: does nib call init?
- From: "Kenneth C. Dyke" <email@hidden>
- Date: Sat, 15 Mar 2003 11:43:57 -0800
It sortof depends on how you created the view in Interface Builder. If
you do it by dragging the standard NSOpenGLView object from the palette
into your window, the initWithFrame: method doesn't get called because
the object is simply being dearchived.
If you instead just drag a Custom View object into your window and set
it to your class, the code below should work.
-Ken
On Saturday, March 15, 2003, at 11:30 AM, daniel oberhoff wrote:
hi
i am trying to figure out how to initialize the NSOpenGLView subclass i
wrote, coz this:
- (id)initWithFrame:(NSRect)frameRect
pixelFormat:(NSOpenGLPixelFormat*)format {
self = [super initWithFrame:frameRect pixelFormat:format];
if (self) {
m_linpos = new vec3f;
m_rotpos = new rotation;
NSLog(@"frame init happens!");
}
return self;
}
which according to the docs is the standard initializer, never gets
called...
daniel
_______________________________________________
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.
Kenneth Dyke, email@hidden (personal), email@hidden (work)
Sr. Mad Scientist, MacOS X OpenGL Group, Apple Computer, Inc.
C++: The power, elegance and simplicity of a hand grenade.
_______________________________________________
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.