Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView auto scroll up behaviour



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSTextView auto scroll up behaviour (From: Satoshi Matsumoto <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.