Add translatesAutoresizingMaskIntoConstraints

This commit is contained in:
Thomas A 2020-10-03 10:43:09 -07:00
parent 4dc0f9c7da
commit f65b17208d
2 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,7 @@ static BOOL NSViewLayersEnabled = NO;
static BOOL NSShowAllViews = NO;
@synthesize constraints=_constraints;
@synthesize translatesAutoresizingMaskIntoConstraints=_translatesAutoresizingMaskIntoConstraints;
- (void)addConstraint:(NSLayoutConstraint *)constraint {
[_constraints addObject: constraint];

View File

@ -129,8 +129,11 @@ APPKIT_EXPORT const NSViewFullScreenModeOptionKey NSFullScreenModeApplicationPre
id __remove;
NSMutableArray<NSLayoutConstraint *> *_constraints;
BOOL _translatesAutoresizingMaskIntoConstraints;
}
@property BOOL translatesAutoresizingMaskIntoConstraints;
@property(readonly, copy) NSArray<NSLayoutConstraint *> *constraints;
- (void)addConstraint:(NSLayoutConstraint *)constraint;
- (void)addConstraints:(NSArray<NSLayoutConstraint *> *)constraints;