Re: NSTextView auto scroll up behaviour
Re: NSTextView auto scroll up behaviour
- Subject: Re: NSTextView auto scroll up behaviour
- From: Andre <email@hidden>
- Date: Wed, 31 Aug 2005 12:49:44 +0900
I'm not sure if anyone responded to you yet, but I think there's a
method in NSTextview
to scroll one line at a time, if you override it to check if its the
last line or top line of a page,
you can use a timer to scroll more lines by calling the super
implementation: - (void)scrollRangeToVisible:(NSRange)aRange
in NSText. Otherwise you might try changing - (void)setLineScroll:
(float)aFloat
to a different setting of the enclosing scrollview of the Textview...
I'm not sure this is the answer, but I remember reading a similar
post before.
It might be in the archives at http://www.cocoabuilder.com/
On 平成 17/08/31, at 11:00, Satoshi Matsumoto wrote:
On NSTextView "Wrap to Window" mode, when the caret reaches at the
bottom of
the window, the display contents are automatically scrolled up the
half
height of the window.
But when a new line was inserted at the end of the document, the
display
contents are scrolled up just only one line. This behaviour is
bothersome
because the contents are scrolled up frequently for every new line
insertion.
On the application "Pages", the display contents are always
automatically
scrolled up the half height of the window even if the caret was at
the end
of the document.
Does anybody know how to customize the NSTextView auto scroll up
behaviour
in order to realize Pages-like specification?
Thanks
Satoshi Matsumoto
-----------------------------------------------------
Satoshi Matsumoto
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden