NSTextView or NSTextField automatically resize bounds / frame?
问题 I'm trying to use either an NSTextView or NSTextField which displays text that I am adding via textField.stringValue = [dictionary objectForKey:@"info"]; The problem is I need the bounds / frame of the text area to vertically re-size to show all of the text. The text varies from a couple of words (1 line) to a paragraph or two. When I try [textField sizeToFit]; It re-sizes the whole thing down to a single line which is absurdly too long (and goes off view). I need it to auto re-size its width