Bug fixes. Log statements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-08-25 04:53:45 +00:00
parent 445a8c9cc5
commit 1891e72942
5 changed files with 26 additions and 8 deletions

View file

@ -1,3 +1,11 @@
2003-08-23 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Corrected some memory related issues.
* GormCustomClassManager.m: Added to log which informs
user of a nil object returned from the name map.
* Gorm.m: Cleaned up some comments and updated the version of
the application.
2003-08-23 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Added some debug logs. And in

6
Gorm.m
View file

@ -504,7 +504,7 @@ NSString *GormDidDeleteClassNotification = @"GormDidDeleteClassNotification";
/***********************************************************************/
/*********************** Info Menu Actions****************************/
/*********************** Info Menu Actions ****************************/
/***********************************************************************/
- (void) infoPanel: (id) sender
@ -516,9 +516,9 @@ NSString *GormDidDeleteClassNotification = @"GormDidDeleteClassNotification";
forKey: @"ApplicationName"];
[dict setObject: @"[GNUstep | Graphical] Object Relationship Modeller"
forKey: @"ApplicationDescription"];
[dict setObject: @"Gorm 0.3.0"
[dict setObject: @"Gorm 0.3.1 (Alpha)"
forKey: @"ApplicationRelease"];
[dict setObject: @"0.3.0 Jul 2003"
[dict setObject: @"0.3.1 Aug 2003"
forKey: @"FullVersionID"];
[dict setObject: [NSArray arrayWithObjects: @"Gregory John Casamento <greg_casamento@yahoo.com>",
@"Richard Frith-Macdonald <rfm@gnu.org>",

View file

@ -127,7 +127,7 @@
}
}
else
NSLog(@"Name for object returned as nil");
NSLog(@"name for object %@ returned as nil",_currentSelection);
}
// Browser delegate

View file

@ -455,6 +455,16 @@ static NSImage *classesImage = nil;
if ([selection count] > 0)
{
id obj = [selection objectAtIndex: 0];
// if it's a scrollview focus on it's contents.
if([obj isKindOfClass: [NSScrollView class]])
{
id newobj = nil;
newobj = [obj documentView];
if(newobj != nil)
{
obj = newobj;
}
}
[self selectClassWithObject: obj];
}
}
@ -2582,8 +2592,8 @@ static NSImage *classesImage = nil;
NSDebugLog(@"customClass = %@",customClass);
NSString *superClass = [cm nonCustomSuperClassOf: customClass];
id <GSTemplate> template = [GSTemplateFactory templateForObject: object
withClassName: customClass
id <GSTemplate> template = [GSTemplateFactory templateForObject: RETAIN(object)
withClassName: RETAIN([customClass copy])
withSuperClassName: superClass];
NSDebugLog(@"object = %@, key = %@, className = %@", object, key, customClass);
[archiver replaceObject: object withObject: template];

View file

@ -14,9 +14,9 @@
ApplicationDescription = "Gorm";
ApplicationIcon = "Gorm.tiff";
ApplicationName = "Gorm";
ApplicationRelease = "0.3.0";
ApplicationRelease = "0.3.1";
Authors = ();
Copyright = "Copyright (C) 1999-2001 FSF";
CopyrightDescription = "Released under the GNU GPL";
FullVersionID = "0.3.0";
FullVersionID = "0.3.1";
}