Re: Scrolling Behavior of NSTextView
Re: Scrolling Behavior of NSTextView
- Subject: Re: Scrolling Behavior of NSTextView
- From: Martin Wierschin <email@hidden>
- Date: Mon, 7 Jun 2010 14:20:23 -0700
I encountered a wired behavior of NSTextView. I tried to use the
following
statement to scroll to top:
[[_scrollView documentView] scrollPoint:NSMakePoint(0, 0)];
where the *documentView* is a NSTextView. But it seems when the
window is in
certain size, the scroll-to-top behavior does not take effect.
Have you tried calling -[NSTextView scrollRangeToVisible:] with
NSMakeRange(0,0)? I haven't tried it, but perhaps that method has some
extra magic.
~Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden