mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
* Source/NSWindowController.m (-setWindow:): Clear the window
delegate if set by NIB loading. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37681 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3116c1c398
commit
c79bd60b8f
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-02-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindowController.m (-setWindow:): Clear the window
|
||||
delegate if set by NIB loading.
|
||||
|
||||
2014-01-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/AppKit/AppKit.h: Add a few missing classes.
|
||||
|
|
|
@ -355,6 +355,12 @@
|
|||
}
|
||||
[responder setNextResponder: [self nextResponder]];
|
||||
[_window setWindowController: nil];
|
||||
|
||||
// Remove the delegate as well if set to the owner in the NIB file
|
||||
if ([_window delegate] == _owner)
|
||||
{
|
||||
[_window setDelegate: nil];
|
||||
}
|
||||
}
|
||||
|
||||
ASSIGN(_window, aWindow);
|
||||
|
|
Loading…
Reference in a new issue