Re: NSTextView auto scroll up behaviour
Re: NSTextView auto scroll up behaviour
- Subject: Re: NSTextView auto scroll up behaviour
- From: Satoshi Matsumoto <email@hidden>
- Date: Wed, 31 Aug 2005 13:24:46 +0900
Andre, thank you for your comment.
on 05.8.31 0:49 PM, Andre at email@hidden wrote:
> 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 am afraid that overriding setLineScroll: or scrollRangeToVisible: will
not work.
When a new line was added to the end of the document, the NSTextView frame
will be automatically resized by just only one line height. Then the scroll
up command more than one line will be neglected.
I think the key is how to customize the auto-resizing of NSTextView frame in
order to resize by more lines than the actual increased text lines.
But I have no idea how to customize the auto-resizing of NSTextView frame.
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
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