git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-06-17 14:53:12 +00:00
parent 464ee79c8d
commit f853534548
3 changed files with 13 additions and 2 deletions

View file

@ -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