If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I have a scrolling text view, and I want it to scroll down every time something is outputted to it. The problem with moveDown is that often the moveDown method moves it up to the top.
Any suggestions?
"Against stupidity, the gods themselves contend in vain" (Schiller)
Probably easy enough to write your own method that calls -scrollRectToVisible:. The one complication is that you'd have to do slightly different things for flipped views (which I believe NSTextView is).
Originally posted by lindberg:
<STRONG>Probably easy enough to write your own method that calls -scrollRectToVisible:. The one complication is that you'd have to do slightly different things for flipped views (which I believe NSTextView is).</STRONG>
Thanks, I will try that. Is this how terminal does it?
"Against stupidity, the gods themselves contend in vain" (Schiller)
Yeah, probably, since it's such a wacked-out custom text view.
Normal NSTextViews can just use -scrollRangeToVisible:. If you pass a range which includes the last character, that will scroll all the way to the bottom.