Big improvement of XIB loading. Now all XIB files from the bug reports

get loaded.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34050 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-10-24 14:44:29 +00:00
parent f586e3e787
commit 0cae3a5134
5 changed files with 352 additions and 103 deletions

View file

@ -527,11 +527,6 @@
if ([aDecoder allowsKeyedCoding])
{
NSView *contentView = [aDecoder decodeObjectForKey: @"NSContentView"];
NSCell *titleCell = [aDecoder decodeObjectForKey: @"NSTitleCell"];
[self setContentView: contentView];
ASSIGN(_cell, titleCell);
if ([aDecoder containsValueForKey: @"NSBoxType"])
{
int boxType = [aDecoder decodeIntForKey: @"NSBoxType"];
@ -559,6 +554,18 @@
{
[self setContentViewMargins: [aDecoder decodeSizeForKey: @"NSOffsets"]];
}
if ([aDecoder containsValueForKey: @"NSTitleCell"])
{
NSCell *titleCell = [aDecoder decodeObjectForKey: @"NSTitleCell"];
ASSIGN(_cell, titleCell);
}
if ([aDecoder containsValueForKey: @"NSContentView"])
{
NSView *contentView = [aDecoder decodeObjectForKey: @"NSContentView"];
[self setContentView: contentView];
}
}
else
{