• 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: difference between windowDidLoad and awakeFromNib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difference between windowDidLoad and awakeFromNib


  • Subject: Re: difference between windowDidLoad and awakeFromNib
  • From: Brian Webster <email@hidden>
  • Date: Tue, 16 Jul 2002 11:07:23 -0500

On Tuesday, July 16, 2002, at 10:12 AM, cocoa-dev-
email@hidden wrote:

I'd like to know the differences between windowDidLoad in
NSWindowController and awakeFromNib.

I believe the awakeFromNib method is only called on objects that are actually archived in the nib file. A NSWindowController is created in code and then loads its nib file programmatically. awakeFromNib will be called on all the objects that are loaded in the nib file, but not the window controller, because it already exists before loading the nib. The windowDidLoad method is provided to give the window controller a chance to set up stuff after all the other objects in the nib file have been instantiated and connected.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: difference between windowDidLoad and awakeFromNib
      • From: email@hidden
  • Prev by Date: Re: Framework library...
  • Next by Date: RE: Framework library...
  • Previous by thread: difference between windowDidLoad and awakeFromNib
  • Next by thread: Re: difference between windowDidLoad and awakeFromNib
  • Index(es):
    • Date
    • Thread