• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Behavior of NSTextView scrollRangeToVisible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Behavior of NSTextView scrollRangeToVisible
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: Behavior of NSTextView scrollRangeToVisible (From: Fritz Anderson <email@hidden>)

  • Prev by Date: File Size and long longs...
  • Next by Date: Re: setAccessoryView
  • Previous by thread: Re: Behavior of NSTextView scrollRangeToVisible
  • Next by thread: Re: Behavior of NSTextView scrollRangeToVisible
  • Index(es):
    • Date
    • Thread