From 468d8e7c33ed453aa3379898a7081f5bdc4d550a Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Mon, 31 May 2010 13:45:51 +0200 Subject: [PATCH] call windowWillLoad and windowDidLoad if the window is set directly from the initializer --- AppKit/CPWindowController.j | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AppKit/CPWindowController.j b/AppKit/CPWindowController.j index aebbc5e89..a123238ab 100644 --- a/AppKit/CPWindowController.j +++ b/AppKit/CPWindowController.j @@ -72,11 +72,17 @@ if (self) { + if (aWindow) + [self windowWillLoad]; + [self setWindow:aWindow]; [self setShouldCloseDocument:NO]; [self setNextResponder:CPApp]; + if (aWindow) + [self windowDidLoad]; + _documents = []; }