mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:51:55 +00:00
First pass - XIB 5 loading - much work still needed - currently limits changes to
initWithCoder methods and encompasses entire loading to translate XIB 5 into older XIB key processing. ALl this eventually should be cleaned up properly but done this way in order to expedite the code push into svn for Testplant usage. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40300 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
741024d6ed
commit
31f52310df
30 changed files with 4840 additions and 1292 deletions
|
@ -4726,13 +4726,15 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
|
|||
}
|
||||
if ([aDecoder containsValueForKey: @"NSvFlags"])
|
||||
{
|
||||
GSvFlags VFlags;
|
||||
NSUInteger vFlags = [aDecoder decodeIntForKey: @"NSvFlags"];
|
||||
|
||||
memcpy(&VFlags, &vFlags, sizeof(VFlags));
|
||||
|
||||
// We are lucky here, Apple use the same constants
|
||||
// in the lower bits of the flags
|
||||
[self setAutoresizingMask: vFlags & 0x3F];
|
||||
[self setAutoresizesSubviews: ((vFlags & 0x100) == 0x100)];
|
||||
[self setHidden: ((vFlags & 0x80000000) == 0x80000000)];
|
||||
[self setAutoresizingMask: VFlags.autoresizingMask];
|
||||
[self setAutoresizesSubviews: VFlags.autoresizesSubviews];
|
||||
[self setHidden: VFlags.isHidden];
|
||||
}
|
||||
|
||||
// iterate over subviews and put them into the view...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue