Correction for reparenting.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20441 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-11 23:05:52 +00:00
parent a87abe7ff1
commit ec792b978b
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-12-11 18:03 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.m: Correction for reparenting of a class in
-setSuperClassNamed:forClassNamed:
2004-12-11 10:22 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassInspector.m: Changed _refreshView to gray out the

View file

@ -1429,7 +1429,18 @@
info = [classInformation objectForKey: subclass];
if (info != nil)
{
// remove actions/outlets inherited from superclasses...
[info removeObjectForKey: @"AllActions"];
[info removeObjectForKey: @"AllOutlets"];
// change the parent of the class...
[info setObject: superclass forKey: @"Super"];
// recalculate the actions/outlets...
[self allActionsForClassNamed: subclass];
[self allOutletsForClassNamed: subclass];
// return success.
return YES;
}
else