Up

# NSLayoutConstraint class documentation

### Authors

Generated by root

### Contents -

1. Software documentation for the NSLayoutConstraint class
2. Software documentation for the NSWindow(NSConstraintBasedLayoutCoreMethods) category

# Software documentation for the NSLayoutConstraint class

## NSLayoutConstraint : NSObject

> Declared in:
>   AppKit/NSLayoutConstraint.h

> Conforms to:
>   NSCoding
>   NSCopying

Availability: Not in OpenStep/MacOS-X
Description forthcoming.

Instance Variables
Method summary

- +activateConstraints:
- +constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:
- +constraintsWithVisualFormat:options:metrics:views:
- +deactivateConstraints:
- -constant
- -firstAnchor
- -firstAttribute
- -firstItem
- -isActive
- -multiplier
- -priority
- -relation
- -secondAnchor
- -secondAttribute
- -secondItem
- -setActive:
- -setPriority:

### activateConstraints:

+ (void) activateConstraints: (NSArray*)constraints;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### constraintWithItem: attribute: relatedBy: toItem: attribute: multiplier: constant:

+ (instancetype) constraintWithItem: (id)view1 attribute: (NSLayoutAttribute)attr1 relatedBy: (NSLayoutRelation)relation toItem: (id)view2 attribute: (NSLayoutAttribute)attr2 multiplier: (CGFloat)mult constant: (CGFloat)c;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### constraintsWithVisualFormat: options: metrics: views:

+ (NSArray*) constraintsWithVisualFormat: (NSString*)fmt options: (NSLayoutFormatOptions)opt metrics: (NSDictionary*)metrics views: (NSDictionary*)views;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### deactivateConstraints:

+ (void) deactivateConstraints: (NSArray*)constraints;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### constant

- (CGFloat) constant;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### firstAnchor

- (NSLayoutAnchor*) firstAnchor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### firstAttribute

- (NSLayoutAttribute) firstAttribute;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### firstItem

- (id) firstItem;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### isActive

- (BOOL) isActive;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### multiplier

- (CGFloat) multiplier;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### priority

- (NSLayoutPriority) priority;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### relation

- (NSLayoutRelation) relation;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### secondAnchor

- (NSLayoutAnchor*) secondAnchor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### secondAttribute

- (NSLayoutAttribute) secondAttribute;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### secondItem

- (id) secondItem;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setActive:

- (void) setActive: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setPriority:

- (void) setPriority: (NSLayoutPriority)priority;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

## Instance Variables for NSLayoutConstraint Class

### _constant

@protected CGFloat _constant;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _firstAnchor

@protected NSLayoutAnchor* _firstAnchor;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _firstAttribute

@protected NSLayoutAttribute _firstAttribute;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _firstItem

@protected id _firstItem;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _multiplier

@protected CGFloat _multiplier;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _priority

@protected NSLayoutPriority _priority;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _relation

@protected NSLayoutRelation _relation;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _secondAnchor

@protected NSLayoutAnchor* _secondAnchor;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _secondAttribute

@protected NSLayoutAttribute _secondAttribute;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _secondItem

@protected id _secondItem;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

# Software documentation for the NSWindow(NSConstraintBasedLayoutCoreMethods) category

## NSWindow(NSConstraintBasedLayoutCoreMethods)

> Declared in:
>   AppKit/NSLayoutConstraint.h

Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Method summary

- -_bootstrapAutoLayout
- -layoutIfNeeded

### _bootstrapAutoLayout

- (void) _bootstrapAutoLayout;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.

### layoutIfNeeded

- (void) layoutIfNeeded;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

Up