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 using
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
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
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
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
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 coordinate