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:
alexm 2005-01-18 16:04:40 +00:00
parent 6057700321
commit 6acacf4ca3
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> 2005-01-18 16:53 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCell.m (-setUpFieldEditorAttributes:): Clear the * Source/NSCell.m (-setUpFieldEditorAttributes:): Clear the

View file

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