How to let NSTextField grow with the text in auto layout?
The method intrinsicContentSize in NSView returns what the view itself thinks of as its intrinsic content size. NSTextField calculates this without considering the wraps property of its cell, so it will report the dimensions of the text if laid out in on a single line. Hence, a custom subclass of NSTextField can override this method … Read more