Cleaned up some NSLog calls. Code runs more silently now.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@15305 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-12-15 18:17:53 +00:00
parent ad6754d31e
commit b3c9a41fc1
5 changed files with 26 additions and 22 deletions

View file

@ -1,3 +1,10 @@
2002-12-15 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.m: Changed NSLog to NSDebugLog.
* GormCustomClassInspector.m: Changed NSLog calls to NSDebugLog.
* GormDocument.m: Changed NSLog calls to NSDebugLog where appropriate.
* GormOutlineView.m: removed some uneeded NSLog calls.
2002-12-15 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Minor cleanup.

View file

@ -928,7 +928,7 @@ NSString *IBClassNameChangedNotification = @"IBClassNameChangedNotification";
NSEnumerator *enumerator;
NSString *key;
NSLog(@"Load from file %@",path);
NSDebugLog(@"Load from file %@",path);
dict = [NSDictionary dictionaryWithContentsOfFile: path];
// customClasses = [NSMutableArray arrayWithCapacity: 1];
@ -997,7 +997,7 @@ NSString *IBClassNameChangedNotification = @"IBClassNameChangedNotification";
{
NSMutableDictionary *dict;
NSLog(@"Load custom classes from file %@",path);
NSDebugLog(@"Load custom classes from file %@",path);
dict = [NSMutableDictionary dictionaryWithContentsOfFile: path];
if (dict == nil)
@ -1250,7 +1250,7 @@ NSString *IBClassNameChangedNotification = @"IBClassNameChangedNotification";
- (void)setCustomClassMap: (NSMutableDictionary *)dict
{
// copy the dictionary..
NSLog(@"dictionary = %@",dict);
NSDebugLog(@"dictionary = %@",dict);
ASSIGN(customClassMap, dict);
RETAIN(customClassMap);
}
@ -1267,7 +1267,7 @@ NSString *IBClassNameChangedNotification = @"IBClassNameChangedNotification";
// iterate up the chain until a non-custom superclass is found...
while([self isCustomClass: result])
{
NSLog(@"result = %@",result);
NSDebugLog(@"result = %@",result);
result = [self superClassNameForClassNamed: result];
}

View file

@ -70,7 +70,7 @@
NSString *nameForObject = [_document nameForObject: anobject];
NSString *className = [_classManager customClassForObject: nameForObject];
NSLog(@"name for object = %@, object = %@, className = %@",nameForObject, anobject, className);
NSDebugLog(@"name for object = %@, object = %@, className = %@",nameForObject, anobject, className);
// if no entry, then use the name of the class
if([className isEqualToString: @""] ||
className == nil)

View file

@ -292,7 +292,7 @@ static NSImage *classesImage = nil;
NSString *className = [classManager customClassForObject: key];
[tempNameTable setObject: obj forKey: key]; // save the old object
NSLog(@"className = (%@), obj = (%@), key = (%@)",className,obj,key);
NSDebugLog(@"className = (%@), obj = (%@), key = (%@)",className,obj,key);
if(className != nil)
{
// The order in which these are handled is important. The mutually
@ -396,7 +396,7 @@ static NSImage *classesImage = nil;
}
// [customClasses setObject: @"TestValue" forKey: @"TestKey"]; // temporary
NSLog(@"*** customClassMap = %@",[classManager customClassMap]);
NSDebugLog(@"*** customClassMap = %@",[classManager customClassMap]);
[nameTable setObject: [classManager customClassMap] forKey: @"GSCustomClassMap"];
/*
@ -471,7 +471,6 @@ static NSImage *classesImage = nil;
case 0: // objects
{
[selectionBox setContentView: scrollView];
NSLog(@"Switching to objects");
}
break;
case 1: // images
@ -1004,7 +1003,7 @@ static NSImage *classesImage = nil;
if (result == NSOKButton)
{
headerName = [sp filename];
NSLog(@"Saving %@",className);
NSDebugLog(@"Saving %@",className);
if (![classManager makeSourceAndHeaderFilesForClass: className
withName: sourceName
and: headerName])
@ -1843,7 +1842,7 @@ static NSImage *classesImage = nil;
{
NSString *soundPath = [documentPath stringByAppendingPathComponent: file];
// add the sound...
NSLog(@"Add the sound %@",file);
NSDebugLog(@"Add the sound %@",file);
[soundsView addObject: [self _createSoundPlaceHolder: soundPath]];
[sounds addObject: soundPath];
}
@ -1867,7 +1866,7 @@ static NSImage *classesImage = nil;
id placeHolder = [self _createImagePlaceHolder: imagePath];
if (placeHolder)
{
NSLog(@"Add the image %@",file);
NSDebugLog(@"Add the image %@",file);
[imagesView addObject: placeHolder];
[images addObject: imagePath];
}
@ -1879,7 +1878,7 @@ static NSImage *classesImage = nil;
// NSLog(@"customClasses = %@",customClasses);
// [classManager setCustomClassMap: customClasses];
NSLog(@"nameTable = %@",[c nameTable]);
NSDebugLog(@"nameTable = %@",[c nameTable]);
return self;
}
@ -2909,12 +2908,12 @@ static NSImage *classesImage = nil;
if([[[c source] className] isEqualToString: className])
{
[source setClassName: newName];
NSLog(@"Found matching source");
NSDebugLog(@"Found matching source");
}
else if([[[c destination] className] isEqualToString: className])
{
[destination setClassName: newName];
NSLog(@"Found matching destination");
NSDebugLog(@"Found matching destination");
}
}
@ -3131,10 +3130,10 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
BOOL result = NO;
GormOutlineView *gov = (GormOutlineView *)outlineView;
NSLog(@"in the delegate %@", [tableColumn identifier]);
NSDebugLog(@"in the delegate %@", [tableColumn identifier]);
if(tableColumn == [gov outlineTableColumn])
{
NSLog(@"outline table col");
NSDebugLog(@"outline table col");
if(![item isKindOfClass: [GormOutletActionHolder class]])
{
result = [classManager isCustomClass: item];
@ -3194,7 +3193,7 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
types: fileTypes];
if (result == NSOKButton)
{
NSLog(@"Loading sound file: %@",[oPanel filename]);
NSDebugLog(@"Loading sound file: %@",[oPanel filename]);
[soundsView addObject: [self _createSoundPlaceHolder: [oPanel filename]]];
[sounds addObject: [oPanel filename]];
return self;
@ -3218,7 +3217,7 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
types: fileTypes];
if (result == NSOKButton)
{
NSLog(@"Loading image file: %@",[oPanel filename]);
NSDebugLog(@"Loading image file: %@",[oPanel filename]);
[imagesView addObject: [self _createImagePlaceHolder: [oPanel filename]]];
[images addObject: [oPanel filename]];
return self;

View file

@ -151,8 +151,7 @@ static NSColor *darkGreyBlueColor = nil;
{
[super collapseItem: item
collapseChildren: collapseChildren];
} else
NSLog(@"Cannot collapse while editing");
}
}
- (void)expandItem:(id)item expandChildren:(BOOL)expandChildren
@ -161,8 +160,7 @@ static NSColor *darkGreyBlueColor = nil;
{
[super expandItem: item
expandChildren: expandChildren];
} else
NSLog(@"Cannot expand while editing");
}
}
- (BOOL)_isOutletOrActionOfItemBeingEdited: (NSString *)name