mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +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
986af02c51
commit
4d6888a9d9
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>
|
2014-01-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Headers/AppKit/AppKit.h: Add a few missing classes.
|
* Headers/AppKit/AppKit.h: Add a few missing classes.
|
||||||
|
|
|
@ -355,6 +355,12 @@
|
||||||
}
|
}
|
||||||
[responder setNextResponder: [self nextResponder]];
|
[responder setNextResponder: [self nextResponder]];
|
||||||
[_window setWindowController: nil];
|
[_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);
|
ASSIGN(_window, aWindow);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue