# NSLayoutConstraint class documentation

Generated at 2026-06-27 19:09:52 +0000
Software documentation for the NSLayoutConstraint class
AppKit/NSLayoutConstraint.h
NSCoding
NSCopying
Description forthcoming.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
activateConstraints:
constraints
Description forthcoming.
constraintWithItem:
view1
attribute:
attr1
relatedBy:
relation
toItem:
view2
attribute:
attr2
multiplier:
mult
constant:
c
Description forthcoming.
constraintsWithVisualFormat:
fmt
options:
opt
metrics:
metrics
views:
views
Description forthcoming.
deactivateConstraints:
constraints
Description forthcoming.
constant
Description forthcoming.
firstAnchor
Description forthcoming.
firstAttribute
Description forthcoming.
firstItem
Description forthcoming.
isActive
Description forthcoming.
multiplier
Description forthcoming.
priority
Description forthcoming.
relation
Description forthcoming.
secondAnchor
Description forthcoming.
secondAttribute
Description forthcoming.
secondItem
Description forthcoming.
setActive:
flag
Description forthcoming.
setPriority:
priority
Description forthcoming.
Software documentation for the NSWindow(NSConstraintBasedLayoutCoreMethods) category
AppKit/NSLayoutConstraint.h
Description forthcoming.
_bootstrapAutoLayout
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
Description forthcoming.