> Martin, I tried the " [NSTextView scrollRangeToVisible:] with
> NSMakeRange(0,0) ", but it is the same as to use [scrollPoint:] solely. Only
> with
> [glyphRangeForTextContainer:] in prior the scroll-to-top works. I don't think
> it is the problem of coordinate system flip-ness, because when u
Thanks for all your replies, Martin and Paul.
Martin, I tried the " [NSTextView scrollRangeToVisible:] with
NSMakeRange(0,0) ", but it is the same as to use [scrollPoint:] solely. Only
with [glyphRangeForTextContainer:] in prior the scroll-to-top works. I don't
think it is the problem of coordinat
On 2010.06.07, at 2:10 PM, Paul Sanders wrote:
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
cert
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 t
> 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
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 ef