Release the document.
Patch by Doug Simons <doug.simons@testplant.com>
* Source/GSXibLoader.m: Fix a problem where owner,
* firstResponder and application
were put in the list of top-level objects, creating a
retain-cycle.
* Source/NSViewController.m: Fix a problem where view
* controllers
did not release their top-level objects as expected.
* Source/NSWindowController.m: Fix a problem where window
controllers did not release their top-level objects as expected.
Changes made in occordance with
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html
Patch by Jonathan Gillaspie <jonathan.gillaspie@testplant.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36134 72102866-910b-0410-8b05-ffd578937521
self and only call setDocument: if we have an actual window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34825 72102866-910b-0410-8b05-ffd578937521
the owner of the nib, since this is what Apple seems to do and since
this behavior is more useful when a non-document class uses a window
controller.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31491 72102866-910b-0410-8b05-ffd578937521
the window as loaded even when the nib failed to load.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30227 72102866-910b-0410-8b05-ffd578937521
extension. Try to use higher level NIB loading methods where possible.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30077 72102866-910b-0410-8b05-ffd578937521
also when its display name is equal to the last path component of the
file name, since that is what NSDocument uses by default for
compatibility with OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30052 72102866-910b-0410-8b05-ffd578937521
cycle when its window is closed to prevent crashes due to a premature
release after the latest nib loading changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30051 72102866-910b-0410-8b05-ffd578937521
Don't draw an empty rect in NSCachedImageRep. Fixes the remaining issue of #22282.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27250 72102866-910b-0410-8b05-ffd578937521
Decoding and encoding for NSWindowController.
Extend the responder chain of a window beyond itself.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26959 72102866-910b-0410-8b05-ffd578937521
responder chain. Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26956 72102866-910b-0410-8b05-ffd578937521
[initWithWindow:], [dealloc] and [_windowWillClose:] now use [setWindow:].
[setDocument:] now no longer retains the document, as this is
already retaining the window controller. Simplified [loadWindow]
by using the method [windowNibPath].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17574 72102866-910b-0410-8b05-ffd578937521