How do I limit NSTextView to 2 lines?
From 10.11 you can use this
yourTextViewObj.textContainer.maximumNumberOfLines = 2;
You can use an NSTextField
configured as a multi-line label. That means setting its cell
's wraps
property to true and, if desired, its truncatesLastVisibleLine
to true.