• 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: 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

  • Follow-Ups:
    • [solved] Re: NSTextView auto scroll up behaviour
      • From: Satoshi Matsumoto <email@hidden>
References: 
 >Re: NSTextView auto scroll up behaviour (From: Andre <email@hidden>)

  • Prev by Date: Re: Tableviews like Excel ones
  • Next by Date: Re: Pausing and terminating a thread
  • Previous by thread: Re: NSTextView auto scroll up behaviour
  • Next by thread: [solved] Re: NSTextView auto scroll up behaviour
  • Index(es):
    • Date
    • Thread