Debugging information and switched to using RELEASE in loadDocument: on the unarchiver instead of AUTORELEASE.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19028 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-04-05 04:33:37 +00:00
parent f37346282d
commit a6543f73c0
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-04-05 00:06 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: [GormDocument rebuildObjToNameMapping] some
additional debugging information. Also in [GormDocument loadDocument:]
unarchiver is now explicitly using RELEASE instead of AUTORELEASE.
2004-04-04 22:09 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: [GormDocument rebuildObjToNameMapping]

View file

@ -2062,7 +2062,7 @@ static NSImage *classesImage = nil;
* handling class replacement so that standard objects understood
* by the gui library are converted to their Gorm internal equivalents.
*/
u = AUTORELEASE([[NSUnarchiver alloc] initForReadingWithData: data]);
u = [[NSUnarchiver alloc] initForReadingWithData: data];
// classes
[u decodeClassName: @"GSNibContainer"
@ -2255,6 +2255,9 @@ static NSImage *classesImage = nil;
[nc postNotificationName: IBDidOpenDocumentNotification
object: self];
// release the unarchiver.. now that we're all done...
RELEASE(u);
return self;
}
@ -2266,7 +2269,7 @@ static NSImage *classesImage = nil;
NSEnumerator *enumerator;
NSString *name;
NSLog(@"------ Rebuilding object to name mapping...");
NSDebugLog(@"------ Rebuilding object to name mapping...");
NSResetMapTable(objToName);
NSMapInsert(objToName, (void*)filesOwner, (void*)@"NSOwner");
NSMapInsert(objToName, (void*)firstResponder, (void*)@"NSFirst");
@ -2275,7 +2278,7 @@ static NSImage *classesImage = nil;
{
id obj = [nameTable objectForKey: name];
NSLog(@"%@ --> %@",name, obj);
NSDebugLog(@"%@ --> %@",name, obj);
NSMapInsert(objToName, (void*)obj, (void*)name);
if ([obj isKindOfClass: [NSMenu class]] == YES)
{