Well naturally, two minutes after posting this question, I finally found Apple’s TextSizingExample. I’m going to try implementing what I learned from that, then I’ll ask my question again if that’s not enough to help me cross the finish line.
— Charles Jenkins On Sunday, October 5, 2014 at 7:41 AM, Charles Jenkins wrote: > I put an important question in a post with too much other information, so I’m > not surprised nobody answered it. > > I need a text editor control that will size itself vertically to contain text > as the user types or pastes it in. That means: > > The text container must size itself vertically to fit the text > The text view must size itself vertically to fit the text container > The text view must somehow notify its superview that its size has changed. > > Does anyone know how to do this? > > > What I’ve tried so far is setting the text container’s widthTracksView to YES > and pinning the text view to the size of its scroll view, so the widths are > handled, I think. But I don’t know where to begin to get the height to resize > from the inside out. > > Thank you! > > — > > Charles Jenkins > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com