I am able to set the initial height/width of the NSTextContainer object
of a NSTextView object in IB. However, I cannot find any method that
will allow the programmatic re-sizing of the container when the text I'm
adding exceeds this size.
Optimally, I'd like to utilize the setContainerSize
On Aug 29, 2008, at 11:01 AM, Martin Stoufer wrote:
I am able to set the initial height/width of the NSTextContainer
object of a NSTextView object in IB. However, I cannot find any
method that will allow the programmatic re-sizing of the container
when the text I'm adding exceeds this
Doug is correct. Check out NSText in the APIs. I used this method
just yesterday to size a text view:
-sizeToFit
Resizes the receiver to fit its text.
- (void)sizeToFit
Discussion
The text view will not be sized any smaller than its minimum size,
however.
Availability
•