don't send windowWillLoad and windowDidLoad if the window is not loaded from cib

This commit is contained in:
Klaas Pieter Annema committed 2010-06-30 11:41:22 +02:00
1 parent 2022eb5c12
commit 83ea50a836
1 file changed
-6
-6
View File
@@ -72,17 +72,11 @@
if (self)
{
if (aWindow)
[self windowWillLoad];
[self setWindow:aWindow];
[self setShouldCloseDocument:NO];
[self setNextResponder:CPApp];
if (aWindow)
[self windowDidLoad];
_documents = [];
}