Resize Superviews
Resize Superviews
- Subject: Resize Superviews
- From: Charles Jenkins <email@hidden>
- Date: Sun, 05 Oct 2014 07:41:50 -0400
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 (email@hidden)
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:
This email sent to email@hidden