mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 23:40:48 +00:00
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:
parent
f586e3e787
commit
0cae3a5134
5 changed files with 352 additions and 103 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue