Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
- Subject: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
- From: Gerben Wierda <email@hidden>
- Date: Sat, 17 Aug 2002 01:04:48 +0200
On Saturday, August 17, 2002, at 12:46 , Kyle Moffett wrote:
Yes, or just put your code in at the end of the makeWindowControllers
function.
The windowControllerDidLoadNib is called to signify that all the
connections are
made and the window is loaded, namely right after you
makeWindowControllers.
It was just designed as a method of initialization that requires
slightly less work
than the makeWindowControllers method.
Nope, that does not work either. At the end of makeWindowControllers,
the nib has not been awoken and the outlets are still all 0.
The 'solution' I came up with in the end was to implement awakeFromNib
in my NSWindowController subclass and call windowControllerDidLoadNib
for the document from there. It should not be necessary and I am at a
loss explaining why I need this, but it works now so I'll let it at that.
G
_______________________________________________
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.