mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
* GormCore/GormClassManager.m: Correct bug#29795: Unable to change
superclass of NSOwner... This bug was due to the owner class name being released and a subsequent set failing on NSOwner in the parseHeader: method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@30300 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c8360459a3
commit
e8e2904494
2 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-05-05 20:55-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* GormCore/GormClassManager.m: Correct bug#29795: Unable to change
|
||||
superclass of NSOwner... This bug was due to the owner class name
|
||||
being released and a subsequent set failing on NSOwner in the
|
||||
parseHeader: method.
|
||||
|
||||
2010-05-05 12:38-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* GormCore/GormClassInspector.m:
|
||||
|
|
|
@ -1920,6 +1920,9 @@
|
|||
GormFilesOwner *owner = [document objectForName: @"NSOwner"];
|
||||
NSString *ownerClassName = [owner className];
|
||||
|
||||
// Retain this, in case we're dealing with the NSOwner...
|
||||
RETAIN(ownerClassName);
|
||||
|
||||
// delete the class..
|
||||
[self removeClassNamed: className];
|
||||
|
||||
|
@ -1929,11 +1932,17 @@
|
|||
withActions: actions
|
||||
withOutlets: outlets];
|
||||
|
||||
// Set the owner back to the class name, if needed.
|
||||
if([className isEqualToString: ownerClassName])
|
||||
{
|
||||
[owner setClassName: className];
|
||||
}
|
||||
|
||||
// refresh the connections.
|
||||
[document refreshConnectionsForClassNamed: className];
|
||||
|
||||
// reset the class name.
|
||||
[owner setClassName: ownerClassName];
|
||||
|
||||
// Release the owner classname...
|
||||
RELEASE(ownerClassName);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue