More fixes to stabilize current release.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19303 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-05-14 04:31:29 +00:00
parent e58da6f7b8
commit 00dbdae2ef

View file

@ -1461,6 +1461,26 @@ static NSImage *classesImage = nil;
- (void) _closeAllEditors
{
NSEnumerator *enumerator;
id<IBConnectors> con;
NSMutableArray *editors = [NSMutableArray array];
// remove the editor connections from the connection array...
enumerator = [connections objectEnumerator];
while ((con = [enumerator nextObject]) != nil)
{
if ([con isKindOfClass: [GormObjectToEditor class]] == YES)
{
[editors addObject: con];
}
else if ([con isKindOfClass: [GormEditorToParent class]] == YES)
{
[editors addObject: con];
}
}
[connections removeObjectsInArray: editors];
[editors removeAllObjects];
// close all of the editors & get all of the objects out.
[openEditors makeObjectsPerformSelector: @selector(close)];
[openEditors removeAllObjects];