Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible
Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible
- Subject: Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible
- From: James Spencer <email@hidden>
- Date: Sun, 25 Apr 2004 15:21:55 -0500
On Apr 25, 2004, at 1:49 PM, David Kocher wrote:
The API says
public NSRange(int location, int length)
As I want to scroll to the last character and select no text at all I
assume calling
scrollRangeToVisible(new NSRange(textView.textStorage().length(), 0))
is correct. No?
Sorry, yes, that's "correct" in terms of the order.
However, that being the case, now I'm wondering if you are now
suffering from an off by one error because you are beyond the end of
textStorage.
Spence
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.