Improved warning logging by using NSWarn... macros

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-11-07 19:06:29 +00:00
parent 2c9cd71851
commit edbcf602c3
2 changed files with 17 additions and 12 deletions

View file

@ -1,3 +1,8 @@
Sun Nov 7 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: Change debug logging for negative width and
height values to use NSWarn... macros instead.
Fri Nov 5 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSApplication.m: ([-hide:]) and ([-unhideWithoutActivation])

View file

@ -195,12 +195,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (frameRect.size.width < 0)
{
NSDebugMLLog(@"NSView", @"given negative width", 0);
NSWarnMLog(@"given negative width", 0);
frameRect.size.width = 0;
}
if (frameRect.size.height < 0)
{
NSDebugMLLog(@"NSView", @"given negative height", 0);
NSWarnMLog(@"given negative height", 0);
frameRect.size.height = 0;
}
frame = frameRect; // Set frame rectangle
@ -556,12 +556,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (frameRect.size.width < 0)
{
NSDebugMLLog(@"NSView", @"given negative width", 0);
NSWarnMLog(@"given negative width", 0);
frameRect.size.width = 0;
}
if (frameRect.size.height < 0)
{
NSDebugMLLog(@"NSView", @"given negative height", 0);
NSWarnMLog(@"given negative height", 0);
frameRect.size.height = 0;
}
if (coordinates_valid)
@ -596,12 +596,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (newSize.width < 0)
{
NSDebugMLLog(@"NSView", @"given negative width", 0);
NSWarnMLog(@"given negative width", 0);
newSize.width = 0;
}
if (newSize.height < 0)
{
NSDebugMLLog(@"NSView", @"given negative height", 0);
NSWarnMLog(@"given negative height", 0);
newSize.height = 0;
}
if (coordinates_valid)
@ -655,12 +655,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (newSize.width < 0)
{
NSDebugMLLog(@"NSView", @"given negative width", 0);
NSWarnMLog(@"given negative width", 0);
newSize.width = 0;
}
if (newSize.height < 0)
{
NSDebugMLLog(@"NSView", @"given negative height", 0);
NSWarnMLog(@"given negative height", 0);
newSize.height = 0;
}
if (coordinates_valid)
@ -709,12 +709,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (aRect.size.width < 0)
{
NSDebugMLLog(@"NSView", @"given negative width", 0);
NSWarnMLog(@"given negative width", 0);
aRect.size.width = 0;
}
if (aRect.size.height < 0)
{
NSDebugMLLog(@"NSView", @"given negative height", 0);
NSWarnMLog(@"given negative height", 0);
aRect.size.height = 0;
}
if (coordinates_valid)
@ -778,12 +778,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (newSize.width < 0)
{
NSDebugMLLog(@"NSView", @"given negative width", 0);
NSWarnMLog(@"given negative width", 0);
newSize.width = 0;
}
if (newSize.height < 0)
{
NSDebugMLLog(@"NSView", @"given negative height", 0);
NSWarnMLog(@"given negative height", 0);
newSize.height = 0;
}
if (coordinates_valid)