• 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: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.


  • Subject: Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 16 Nov 2011 10:52:21 -0800

On Nov 16, 2011, at 10:09 AM, Nick wrote:

> Is there any
> way I could make NSScrollView (which is a container for my NSTextView) be
> able to scroll the textview even if there are not too many lines?

Embed the text view in a taller NSView and put that view into the scrollview.

Or you could just increase the text view’s vertical content inset; IIRC there’s a property for that.

—Jens_______________________________________________

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

  • Follow-Ups:
    • Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
      • From: Don Quixote de la Mancha <email@hidden>
References: 
 >NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle. (From: Nick <email@hidden>)

  • Prev by Date: Re: About iVars declaration and property
  • Next by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Previous by thread: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
  • Next by thread: Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
  • Index(es):
    • Date
    • Thread