mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Use new macros
This commit is contained in:
parent
d0dd3331fb
commit
cb135584c7
1 changed files with 5 additions and 4 deletions
|
@ -40,6 +40,7 @@
|
|||
#import "AppKit/NSKeyValueBinding.h"
|
||||
#import "AppKit/NSPasteboard.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
@ -624,8 +625,8 @@ static NSString *placeholderItem = nil;
|
|||
{
|
||||
_minItemSize = [aCoder decodeSize];
|
||||
_maxItemSize = [aCoder decodeSize];
|
||||
[aCoder decodeValueOfObjCType: @encode(int64_t) at: &_maxNumberOfRows];
|
||||
[aCoder decodeValueOfObjCType: @encode(int64_t) at: &_maxNumberOfColumns];
|
||||
decode_NSUInteger(aCoder, &_maxNumberOfRows);
|
||||
decode_NSUInteger(aCoder, &_maxNumberOfColumns);
|
||||
[aCoder decodeValueOfObjCType: @encode(BOOL) at: &_isSelectable];
|
||||
[self setBackgroundColors: [aCoder decodeObject]]; // decode color...
|
||||
}
|
||||
|
@ -668,8 +669,8 @@ static NSString *placeholderItem = nil;
|
|||
{
|
||||
[aCoder encodeSize: _minItemSize];
|
||||
[aCoder encodeSize: _maxItemSize];
|
||||
[aCoder encodeValueOfObjCType: @encode(int64_t) at: &_maxNumberOfRows];
|
||||
[aCoder encodeValueOfObjCType: @encode(int64_t) at: &_maxNumberOfColumns];
|
||||
encode_NSUInteger(aCoder, &_maxNumberOfRows);
|
||||
encode_NSUInteger(aCoder, &_maxNumberOfColumns);
|
||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_isSelectable];
|
||||
[aCoder encodeObject: [self backgroundColors]]; // encode color...
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue