From 1678fafeaed345f812c044b2c8985d50489398b6 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Fri, 9 May 2003 04:02:41 +0000 Subject: [PATCH] Fixed a bug which was causing issues with custom classes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@16679 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ GormDocument.m | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 045ba16b..f232b9c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-05-07 Gregory John Casamento + + * GormDocument.m: Corrected a problem which was causing the + NSVisible array in the nameTable to become corrupted when + using custom classes. Also added a NSDebugLog call to help + find problems in the nameTable. + 2003-05-07 Gregory John Casamento Applied patch submitted by Rob Burns diff --git a/GormDocument.m b/GormDocument.m index d12ca9b3..40f19ca2 100644 --- a/GormDocument.m +++ b/GormDocument.m @@ -2445,7 +2445,7 @@ static NSImage *classesImage = nil; { a = [NSMutableArray new]; [nameTable setObject: a forKey: @"NSVisible"]; - RELEASE(a); + // RELEASE(a); } if ([a containsObject: anObject] == NO) { @@ -2608,7 +2608,7 @@ static NSImage *classesImage = nil; intoClassName: @"NSMenuTemplate"]; [archiver encodeRootObject: self]; - + NSDebugLog(@"nameTable = %@",nameTable); fileExists = [mgr fileExistsAtPath: documentPath isDirectory: &isDir]; if (fileExists) {