Re: does nib call init?
Re: does nib call init?
- Subject: Re: does nib call init?
- From: Nicholas Riley <email@hidden>
- Date: Sat, 15 Mar 2003 13:47:35 -0600
- Mail-followup-to: daniel oberhoff <email@hidden>, cocoa-dev <email@hidden>
On Sat, Mar 15, 2003 at 08:30:58PM +0100, 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 {
>
>
which according to the docs is the standard initializer,
the correct term is 'designated initializer'.
>
never gets called...
Any object which conforms to NSCoding can also be initialized via
initWithCoder: if it's being unarchived (say, from a nib) instead of
being created from scratch.
Most initialization on objects in a nib can be performed in
- (void)awakeFromNib. If you really need to intervene at the time the
object is unarchived, then use - (id)initWithCoder:(NSCoder *)decoder.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.