Re: Frustrating...
Re: Frustrating...
- Subject: Re: Frustrating...
- From: Jeff LaMarche <email@hidden>
- Date: Mon, 13 Jan 2003 22:18:42 -0500
On Monday, January 13, 2003, at 09:37 PM, Quentin Mathi wrote:
When you open a document :
1. The data is loaded by your NSDocument subclass
2. The nib file associated with this document is loaded by the window
controller
3. You fill the document with the loaded data
To know when the nib file is loaded, it's very simple because the
NSWindowController call the method windowControllerDidLoadWindowNib:,
then you just need to override this method like that :
- (void)windowControllerDidLoadWindowNib:(NSWindowController
*)windowController {
[super windowControllerDidLoadWindowNib:windowController];
// fill my document here
}
I'm not finding any reference to windowControllerDidLoadWindowNib, I'm
guessing you mean windowControllerDidLoadNib. I had already tried
putting my call to updateUI in windowControllerDidLoadNib, which didn't
work. However, I tried again and it is now working. I think the reason
it didn't work before was due to an unrelated bug I had in my
encodeWithCoder: method and have since fixed, because everything seems
to be dandy now.
Thanks for the help!
Jeff
_______________________________________________
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.