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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com