Assign testContainer top level objects to topObjects in testInterface method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23135 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-07-06 00:18:34 +00:00
parent fb005e339f
commit e3ac238603
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2006-07-05 20:17 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: In testInterface, assign top level objects from the
testContainer to topObjects, a temporary var, so that they can be
properly cleaned up.
2006-07-05 19:56 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Correct bug introduced at some point in testInterface which

5
Gorm.m
View file

@ -62,7 +62,7 @@
NSRect connectDRect;
NSPoint cascadePoint;
NSMutableArray *testingWindows;
NSMutableArray *topObjects;
NSSet *topObjects;
}
// handle notifications the object recieves.
@ -481,8 +481,7 @@
[self setMainMenu: aMenu];
// initialize the context.
RETAIN(testContainer);
// context = [NSDictionary dictionaryWithObjectsAndKeys: topObjects,
// @"NSTopLevelObjects", self, @"NSOwner", nil];
topObjects = [testContainer topLevelObjects];
[nameTable removeObjectForKey: @"NSServicesMenu"];
[nameTable removeObjectForKey: @"NSWindowsMenu"];