Remove some warnings and unused functions, finish implementation of encoding.

This commit is contained in:
Gregory John Casamento 2020-04-24 04:29:15 -04:00
parent bd2372230f
commit 6c8691a082
3 changed files with 6 additions and 1 deletions

View file

@ -130,11 +130,13 @@ typedef struct {
NSInteger height;
} MRect;
/*
static inline MPoint MakePoint (NSInteger x, NSInteger y)
{
MPoint point = { x, y };
return point;
}
*/
@interface NSMatrix (PrivateMethods)
- (void) _renewRows: (NSInteger)row

View file

@ -273,6 +273,8 @@
forKey: @"NSControlAction"];
[coder encodeObject: _target
forKey: @"NSControlTarget"];
[coder encodeBool: _enabled
forKey: @"NSEnabled"];
}
else
{
@ -280,6 +282,7 @@
at: &_state];
[coder encodeObject: NSStringFromSelector([self action])];
[coder encodeObject: [self target]];
[coder encodeBool: [self isEnabled]];
}
}

View file

@ -84,7 +84,7 @@ typedef enum {
static const int ItemBackViewX = 0;
static const int ItemBackViewY = 0;
static const int InsetItemViewX = 10;
static const int InsetItemViewY = 26;
// static const int InsetItemViewY = 26;
static const int InsetItemTextX = 3;
static const int InsetItemTextY = 4;