Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
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