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

Re: initWithFrame vs. awakeFromNib


  • Subject: Re: initWithFrame vs. awakeFromNib
  • From: Henri Lamiraux <email@hidden>
  • Date: Tue, 1 Apr 2003 06:27:47 -0800

Check the IB FAQ (Help menu -> FAQ) and search for initWithFrame:

On Tuesday, April 1, 2003, at 02:43 AM, Oscar Morales Vivs wrote:

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.
_______________________________________________
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: 
 >initWithFrame vs. awakeFromNib (From: Oscar Morales Vivó <email@hidden>)

  • Prev by Date: Re: Help for Help
  • Next by Date: knowing which objects are retaining
  • Previous by thread: Errata: initWithFrame vs. awakeFromNib
  • Next by thread: stringWithContentsOfURL doesn't load the updated file
  • Index(es):
    • Date
    • Thread