diff --git a/ChangeLog b/ChangeLog index f162fa53f..8ed79a622 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,13 @@ +2010-04-23 Jonathan Gillaspie + + * Source/NSWindowController.m: Fixed a problem where controller marks + the window as loaded even when the nib failed to load. + 2010-04-23 Jonathan Gillaspie * Headers/AppKit/NSGraphics.h: NSBeep() - Don't crash when a graphics context isn't available (eg - from a subthread). - 2010-04-23 Wolfgang Lux * Source/NSAlert.m (NSRunAlertPanel): Fix incorrect return code @@ -85,9 +89,9 @@ 2010-04-13 Jonathan Gillaspie - * Source/GSToolTips.m: Use a single retain window for tooltips instead of a - newly created one each time. This significantly reduces callback interaction - with MS-Windows callbacks. + * Source/GSToolTips.m: Use a single retained window for tooltips instead of + a newly created one each time. This significantly reduces interaction + with MS-Windows callbacks. 2010-04-12 Fred Kiefer diff --git a/Source/NSWindowController.m b/Source/NSWindowController.m index 9a408f060..6dee5e5fa 100644 --- a/Source/NSWindowController.m +++ b/Source/NSWindowController.m @@ -302,13 +302,15 @@ } [self loadWindow]; - - [self _windowDidLoad]; - if ([_document respondsToSelector: - @selector(windowControllerDidLoadNib:)]) - { - [_document windowControllerDidLoadNib:self]; - } + if ([self isWindowLoaded]) + { + [self _windowDidLoad]; + if ([_document respondsToSelector: + @selector(windowControllerDidLoadNib:)]) + { + [_document windowControllerDidLoadNib:self]; + } + } } return _window;