Add customPlacementConstraints

This commit is contained in:
Gregory John Casamento 2021-03-20 07:45:44 -04:00
parent 2576fbd215
commit bf302d3a12
2 changed files with 9 additions and 2 deletions

View file

@ -118,6 +118,7 @@ APPKIT_EXPORT const CGFloat NSGridViewSizeForContent;
id _mergeHead;
NSGridRow *_owningRow;
NSGridColumn *_owningColumn;
NSArray *_customPlacementConstraints;
}
- (NSView *) contentView;
@ -139,7 +140,7 @@ APPKIT_EXPORT const CGFloat NSGridViewSizeForContent;
// Constraints
- (NSArray *) customPlacementConstraints;
- (void) setCustomPlacementConstraints: (NSArray *)constraints;
@end
/// Column

View file

@ -841,7 +841,12 @@
// Constraints
- (NSArray *) customPlacementConstraints
{
return nil;
return _customPlacementConstraints;
}
- (void) setCustomPlacementConstraints: (NSArray *)constraints
{
ASSIGNCOPY(_customPlacementConstraints, constraints);
}
// coding
@ -870,6 +875,7 @@
[coder encodeObject: _mergeHead];
[coder encodeObject: _owningRow];
[coder encodeObject: _owningColumn];
[coder encodeObject: _customPlacementConstraints];
[coder encodeValueOfObjCType:@encode(NSInteger)
at: &_xPlacement];
[coder encodeValueOfObjCType:@encode(NSInteger)