mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Add non-keyed decoding
This commit is contained in:
parent
fdf39cf110
commit
83e8cf6a15
1 changed files with 22 additions and 0 deletions
|
@ -131,7 +131,29 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
[coder decodeValueOfObjCType: @encode(CGFloat)
|
||||
at: &_minimumInteritemSpacing];
|
||||
_itemSize = [coder decodeSize];
|
||||
_estimatedItemSize = [coder decodeSize];
|
||||
decode_NSInteger(coder, &_scrollDirection);
|
||||
_headerReferenceSize = [coder decodeSize];
|
||||
_footerReferenceSize = [coder decodeSize];
|
||||
|
||||
// decode inset...
|
||||
[coder decodeValueOfObjCType: @encode(CGFloat)
|
||||
at: &_sectionInset.bottom];
|
||||
[coder decodeValueOfObjCType: @encode(CGFloat)
|
||||
at: &_sectionInset.top];
|
||||
[coder decodeValueOfObjCType: @encode(CGFloat)
|
||||
at: &_sectionInset.left];
|
||||
[coder decodeValueOfObjCType: @encode(CGFloat)
|
||||
at: &_sectionInset.right];
|
||||
|
||||
|
||||
[coder decodeValueOfObjCType: @encode(BOOL)
|
||||
at: &_sectionHeadersPinToVisibleBounds];
|
||||
[coder decodeValueOfObjCType: @encode(BOOL)
|
||||
at: &_sectionFootersPinToVisibleBounds];
|
||||
}
|
||||
}
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue