Corrected a core dump when selecting "open" and the "new application" from the menu.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@14950 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-11-07 05:36:25 +00:00
parent 81141753de
commit 32ae05c7d5
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-11-06 Gregory John Casamento <greg_casamento@yahoo.com>
* GormObjectEditor.m: +[GormObjectEditor initialize]: Corrected how the map table
is created to prevent a crash.
2002-11-06 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: -[GormDocument createClassesFiles:] added if the simply return

View file

@ -78,8 +78,12 @@ static NSMapTable *docMap = 0;
{
if (self == [GormObjectEditor class])
{
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
NSObjectMapValueCallBacks, 2);
docMap = NSCreateMapTable(NSObjectMapKeyCallBacks,
NSObjectMapValueCallBacks,
2);
// docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
// NSObjectMapValueCallBacks, 2);
}
}