I have been trying to get a multi-line NSTextField to lay out automatically using preferredMaxLayoutWidth. I can’t figure out why this doesn’t work
There is an another solution for making the NSTextField multiline with using auto constraints and Interface Builder.
Wraps from LayoutCharacter Wrap from Line Break optionuncheckedAnd add below sample constraints
with the constants that you want. And don't add any specific height constraint.
Below some screenshots which might be helpful.