mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Fixed compilation with gcc < 3.x
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17570 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e647d64d34
commit
e8c70b7dc2
2 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-08-28 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* GormDocument.m: Minor correction to allow compilation with
|
||||||
|
gcc < 3.x.
|
||||||
|
|
||||||
2003-08-28 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.
|
* GormDocument.m: Cleanup some of the extra logs.
|
||||||
|
|
|
@ -2586,15 +2586,12 @@ static NSImage *classesImage = nil;
|
||||||
while((key = [en nextObject]) != nil)
|
while((key = [en nextObject]) != nil)
|
||||||
{
|
{
|
||||||
id customClass = [cm customClassForName: key];
|
id customClass = [cm customClassForName: key];
|
||||||
id object = [self objectForName: key];
|
id object = [self objectForName: key]; // put code here to repair old .gorm files if necessary.
|
||||||
|
|
||||||
// put code here to repair old .gorm files if necessary.
|
|
||||||
|
|
||||||
NSDebugLog(@"customClass = %@",customClass);
|
|
||||||
NSString *superClass = [cm nonCustomSuperClassOf: customClass];
|
NSString *superClass = [cm nonCustomSuperClassOf: customClass];
|
||||||
id <GSTemplate> template = [GSTemplateFactory templateForObject: RETAIN(object)
|
id <GSTemplate> template = [GSTemplateFactory templateForObject: RETAIN(object)
|
||||||
withClassName: RETAIN([customClass copy])
|
withClassName: RETAIN([customClass copy])
|
||||||
withSuperClassName: superClass];
|
withSuperClassName: superClass];
|
||||||
|
NSDebugLog(@"customClass = %@",customClass);
|
||||||
NSDebugLog(@"object = %@, key = %@, className = %@", object, key, customClass);
|
NSDebugLog(@"object = %@, key = %@, className = %@", object, key, customClass);
|
||||||
[archiver replaceObject: object withObject: template];
|
[archiver replaceObject: object withObject: template];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue