Re: Behavior of NSTextView scrollRangeToVisible
Re: Behavior of NSTextView scrollRangeToVisible
- Subject: Re: Behavior of NSTextView scrollRangeToVisible
- From: Satoshi Matsumoto <email@hidden>
- Date: Thu, 13 May 2004 08:32:13 +0900
on 04.5.13 1:34 AM, Fritz Anderson at email@hidden wrote:
>
My guess -- this is only a guess -- is that whoever implemented
>
centerSelectionInVisibleArea: for NSTextView did it "the right way" for
>
the case in which the NSTextView was the only thing being scrolled, but
>
did not attempt the harder task of implementing it for embedded
>
NSTextViews, and simply passed the work off to scrollRangeToVisible:.
>
As solving the general problem could be complex, I sympathize.
Fritz, thank you for your comment.
Real problem is not in TextEdit but in my editor I am developing.
TextEdit is just a example to reproduce the problem.
NSTextView scrollRangeToVisible behaves just like
centerSelectionInVisibleArea in single NSTextView (Wrap to Window) mode but
not in multi-NSTextView (Wrap to Page) mode.
I prefer the centerSelectionInVisibleArea behavior both for single
NSTextView and multi-NSTextView modes.
I am very happy if Douglas Davidson give us a short comment for this
problem.
Do I need to write my own scrollRangeToVisible method for multi-NSTextView
mode to realize the centerSelectionInVisibleArea behavior?
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.