• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: does nib call init?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >does nib call init? (From: daniel oberhoff <email@hidden>)

  • Prev by Date: Re: does nib call init?
  • Next by Date: Re: Problems detecting an active internet connecting using SystemConfiguration
  • Previous by thread: does nib call init?
  • Next by thread: Re: does nib call init?
  • Index(es):
    • Date
    • Thread