diff --git a/ChangeLog b/ChangeLog index d8a63f8c..ea702110 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-28 Gregory John Casamento + + * GormDocument.m: Minor correction to allow compilation with + gcc < 3.x. + 2003-08-28 Gregory John Casamento * GormDocument.m: Cleanup some of the extra logs. diff --git a/GormDocument.m b/GormDocument.m index 52a82c57..ababd74e 100644 --- a/GormDocument.m +++ b/GormDocument.m @@ -2586,15 +2586,12 @@ static NSImage *classesImage = nil; while((key = [en nextObject]) != nil) { id customClass = [cm customClassForName: key]; - id object = [self objectForName: key]; - - // put code here to repair old .gorm files if necessary. - - NSDebugLog(@"customClass = %@",customClass); + id object = [self objectForName: key]; // put code here to repair old .gorm files if necessary. NSString *superClass = [cm nonCustomSuperClassOf: customClass]; id template = [GSTemplateFactory templateForObject: RETAIN(object) withClassName: RETAIN([customClass copy]) withSuperClassName: superClass]; + NSDebugLog(@"customClass = %@",customClass); NSDebugLog(@"object = %@, key = %@, className = %@", object, key, customClass); [archiver replaceObject: object withObject: template]; }