Re: difference between windowDidLoad and awakeFromNib
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.