2005-01-18 17:06 Alexander Malmberg <alexander@malmberg.org>

* Source/NSWindow.m
	(-initWithContentRect:styleMask:backing:defer:screen:): Assert that
	the shared application instance has been created instead of just
	calling NSLog. Make the message clearer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2005-01-18 16:04:40 +00:00
parent f282f87e88
commit d297a62697
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2005-01-18 17:06 Alexander Malmberg <alexander@malmberg.org>
* Source/NSWindow.m
(-initWithContentRect:styleMask:backing:defer:screen:): Assert that
the shared application instance has been created instead of just
calling NSLog. Make the message clearer.
2005-01-18 16:53 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCell.m (-setUpFieldEditorAttributes:): Clear the

View file

@ -912,8 +912,9 @@ many times.
{
NSRect cframe;
if (!NSApp)
NSLog(@"No application!\n");
NSAssert(NSApp,
@"The shared NSApplication instance must be created before windows "
@"can be created.");
NSDebugLLog(@"NSWindow", @"NSWindow start of init\n");
if (!windowmaps)
@ -3109,7 +3110,7 @@ resetCursorRectsForView(NSView *theView)
break;
case NSScrollWheel:
v = [_wv hitTest: [theEvent locationInWindow]];
v = [_wv hitTest: [theEvent locationInWindow]];
[v scrollWheel: theEvent];
break;