• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scrolling woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrolling woes


  • Subject: Re: scrolling woes
  • From: "J.E. Schotsman" <email@hidden>
  • Date: Sat, 20 May 2017 20:56:26 +0200

> 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@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

References: 
 >scrolling woes (From: "J.E. Schotsman" <email@hidden>)
 >Re: scrolling woes (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: scrolling woes
  • Next by Date: Re: scrolling woes
  • Previous by thread: Re: scrolling woes
  • Next by thread: NSBezierPath on iOS?
  • Index(es):
    • Date
    • Thread