• 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: NSTextView auto scroll up behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSTextView auto scroll up behaviour
      • From: Satoshi Matsumoto <email@hidden>
References: 
 >NSTextView auto scroll up behaviour (From: Satoshi Matsumoto <email@hidden>)

  • Prev by Date: Opening a document in code
  • Next by Date: Re: Tableviews like Excel ones
  • Previous by thread: NSTextView auto scroll up behaviour
  • Next by thread: Re: NSTextView auto scroll up behaviour
  • Index(es):
    • Date
    • Thread