• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Java_com_apple_cocoa_application_NSText_scrollRangeToVisible (From: David Kocher <email@hidden>)
 >Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible (From: David Kocher <email@hidden>)

  • Prev by Date: Re: Files owner vs MyController
  • Next by Date: Re: Files owner vs MyController
  • Previous by thread: Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible
  • Next by thread: Re: Java_com_apple_cocoa_application_NSText_scrollRangeToVisible
  • Index(es):
    • Date
    • Thread