Minor corrections. Reduced log output and added logic to prevent exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17561 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-08-28 04:32:41 +00:00
parent 1891e72942
commit e647d64d34
3 changed files with 18 additions and 7 deletions

View file

@ -1,4 +1,10 @@
2003-08-23 Gregory John Casamento <greg_casamento@yahoo.com>
2003-08-28 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Cleanup some of the extra logs.
* GormClassInspector.m: Add logic to prefent index out of bounds
exception.
2003-08-27 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Corrected some memory related issues.
* GormCustomClassManager.m: Added to log which informs
@ -6,7 +12,7 @@
* Gorm.m: Cleaned up some comments and updated the version of
the application.
2003-08-23 Gregory John Casamento <greg_casamento@yahoo.com>
2003-08-26 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Added some debug logs. And in
_replaceObjectsWithTemplates: modified the method to use the

View file

@ -62,7 +62,12 @@ objectValueForTableColumn: (NSTableColumn *)tc
row: (int)rowIndex
{
NSArray *list = [[(Gorm *)NSApp classManager] allOutletsForClassNamed: [inspector _currentClass]];
return [list objectAtIndex: rowIndex];
id value = nil;
if([list count] > 0)
{
value = [list objectAtIndex: rowIndex];
}
return value;
}
- (void) tableView: (NSTableView *)tv

View file

@ -1906,8 +1906,8 @@ static NSImage *classesImage = nil;
[[c nameTable] setObject: cc forKey: GSCustomClassMap];
}
[classManager setCustomClassMap: cc];
NSLog(@"cc = %@", cc);
NSLog(@"customClasses = %@", [classManager customClassMap]);
NSDebugLog(@"cc = %@", cc);
NSDebugLog(@"customClasses = %@", [classManager customClassMap]);
// convert from old file format...
if (isDir == NO)
@ -2655,9 +2655,9 @@ static NSImage *classesImage = nil;
[self _replaceObjectsWithTemplates: archiver];
[archiver encodeRootObject: self];
NSLog(@"nameTable = %@",nameTable);
NSDebugLog(@"nameTable = %@",nameTable);
NSLog(@"customClasses = %@", [classManager customClassMap]);
NSDebugLog(@"customClasses = %@", [classManager customClassMap]);
fileExists = [mgr fileExistsAtPath: documentPath isDirectory: &isDir];
if (fileExists)