• 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
initWithFrame vs. awakeFromNib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

initWithFrame vs. awakeFromNib


  • Subject: initWithFrame vs. awakeFromNib
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Tue, 1 Apr 2003 12:43:19 +0200

Greetings there. I thought I had the concept well learnt by now. You placed a view in IB and it went like this:

1) The object is created and sent initWithFrame
2) It is configured with the data in the .nib file
3) It is sent awakeFromNib so it can do any extra work necessary for initialization after outlets and targets have been set.

However... I created a NSMatrix subclass and placed it with IB in my window (using the custom class tab in the object inspector in IB). And either initWithFrame isn't called, or the NSMatrix one is called directly. Could someone explain me what's with that and what I'm missing? I can work around it easily (I just placed the code in awakeFromNib) but I'll later want to make that class more generically usable and I'd rather understand how it works properly.

Thanks in advance for your help.

Oscar Morales.
_______________________________________________
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.

  • Follow-Ups:
    • Re: initWithFrame vs. awakeFromNib
      • From: Henri Lamiraux <email@hidden>
    • Re: initWithFrame vs. awakeFromNib
      • From: j o a r <email@hidden>
  • Prev by Date: [OT] PGP 8.0.2 Source Code
  • Next by Date: Re: How to download a file from a web site?
  • Previous by thread: Re: knowing which objects are retaining
  • Next by thread: Re: initWithFrame vs. awakeFromNib
  • Index(es):
    • Date
    • Thread