Fix issues with last commit.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-03-22 21:25:35 +00:00
parent d205cd7f9e
commit 68ce541e5d
3 changed files with 39 additions and 14 deletions

View file

@ -154,6 +154,19 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
NSMutableArray *topObjects;
id obj;
// Add these objects with there old names as the code expects them
context = AUTORELEASE([context mutableCopyWithZone: [context zone]]);
obj = [context objectForKey: @"NSNibTopLevelObjects"];
if (obj != nil)
{
[(NSMutableDictionary*)context setObject: obj forKey: @"NSTopLevelObjects"];
}
obj = [context objectForKey: @"NSNibOwner"];
if (obj != nil)
{
[(NSMutableDictionary*)context setObject: obj forKey: @"NSOwner"];
}
isAwake = YES;
/*
* Add local entries into name table.