mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 20:11:20 +00:00
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:
parent
e58da6f7b8
commit
00dbdae2ef
1 changed files with 20 additions and 0 deletions
|
@ -1461,6 +1461,26 @@ static NSImage *classesImage = nil;
|
||||||
|
|
||||||
- (void) _closeAllEditors
|
- (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.
|
// close all of the editors & get all of the objects out.
|
||||||
[openEditors makeObjectsPerformSelector: @selector(close)];
|
[openEditors makeObjectsPerformSelector: @selector(close)];
|
||||||
[openEditors removeAllObjects];
|
[openEditors removeAllObjects];
|
||||||
|
|
Loading…
Reference in a new issue