|
|
Scrolling woes
|
|
|
|
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status:
Offline
|
|
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)
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status:
Offline
|
|
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).
|
|
|
|
|
|
|
|
|
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status:
Offline
|
|
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)
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|