Raise an exception instead of crashing (at least on Windows) when we fail to obtain a window from the back end.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29284 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2010-01-14 23:57:11 +00:00
parent 205498d887
commit 6b20840967
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-01-14 Doug Simons <doug.simons@testplant.com>
* Source/NSWindow.m (-_initBackendWindow): Raise an
exception instead of crashing (at least on Windows) when we
fail to obtain a window from the back end.
2010-01-14 07:08-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSApplication.m: For hide: perform miniaturizeAll:

View file

@ -869,6 +869,8 @@ many times.
: _backingType
: _styleMask
: [_screen screenNumber]];
if (_windowNum == 0)
[NSException raise:@"No Window" format:@"Failed to obtain window from the back end"];
[srv setwindowlevel: [self level] : _windowNum];
if (_parent != nil)
[srv setParentWindow: [_parent windowNumber]