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
This commit is contained in:
Gregory John Casamento 2003-05-09 04:02:41 +00:00
parent b0c1c7c958
commit 1678fafeae
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2003-05-07 Gregory John Casamento <greg_casamento@yahoo.com>
* 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 <greg_casamento@yahoo.com>
Applied patch submitted by Rob Burns

View file

@ -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)
{