> On 20 May 2017, at 20:02, Quincey Morris wrote:
> 
>> I had a text field within a tab view item whose text was getting too large.
> 
> Too large, as in: there are multiple lines of text whose total vertical 
> height exceeds the height of the text field?

Yes

> So I embedded it in a scroll view. No matter what I tried in the xib editor, 
> I couldn't get the scrolling to work.
> 
> Well, no, of course not. A text field is a control, so you put the control in 
> a scroll view. The control itself isn’t bigger than the height available, 
> just the text within the control. Since the scroll bar acts on the control, 
> it doesn’t scroll the text.

So to make this work I would have to set the height of the text field equal to 
the height of the text every time I change the stringValue? Sounds like I need 
a text view instead to display a long non-editable text.

Jan E.

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to