mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:10:38 +00:00
Cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
464ee79c8d
commit
f853534548
3 changed files with 13 additions and 2 deletions
|
@ -808,12 +808,18 @@ static BOOL _isInInterfaceBuilder = NO;
|
|||
|
||||
- (void) instantiateRealObject: (NSCoder *)coder withClassName: (NSString *)className
|
||||
{
|
||||
Class aClass = NSClassFromString(className);
|
||||
Class aClass = nil;
|
||||
id object = nil;
|
||||
Class newCellClass = nil;
|
||||
NSString *origCellClassName = nil;
|
||||
Class origCellClass = nil;
|
||||
|
||||
// if there is a replacement class, use it, otherwise, use the one specified.
|
||||
if((aClass = [(NSKeyedUnarchiver *)coder classForClassName: className]) == nil)
|
||||
{
|
||||
aClass = NSClassFromString(className);
|
||||
}
|
||||
|
||||
if(aClass == nil)
|
||||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue