From 83ea50a8360c357893a8adb26efbc152172e60f3 Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Wed, 30 Jun 2010 11:41:22 +0200 Subject: [PATCH] don't send windowWillLoad and windowDidLoad if the window is not loaded from cib --- AppKit/CPWindowController.j | 6 ------ 1 file changed, 6 deletions(-) diff --git a/AppKit/CPWindowController.j b/AppKit/CPWindowController.j index c5496a7e5..2d011af98 100644 --- a/AppKit/CPWindowController.j +++ b/AppKit/CPWindowController.j @@ -72,17 +72,11 @@ if (self) { - if (aWindow) - [self windowWillLoad]; - [self setWindow:aWindow]; [self setShouldCloseDocument:NO]; [self setNextResponder:CPApp]; - if (aWindow) - [self windowDidLoad]; - _documents = []; }