• 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
Determining the scroll position of an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining the scroll position of an NSTextView?


  • Subject: Determining the scroll position of an NSTextView?
  • From: Wade Tregaskis <email@hidden>
  • Date: Mon, 3 Nov 2003 00:52:38 +1100

Forgive me if this is blindingly obvious, but I've been searching the documentation & archives for a few days now, and haven't turned up anything obvious on this.

While there is a method to set the position of an NSScrollView (or NSScroller.. can't remember off hand), there doesn't seem to be any way of getting the position. Essentially all I want to do is update the scroll position when new text is added (so that the field scrolls with the new text), but only if the field is already scrolled all the way to the bottom. If it's not at the bottom, I'll presume the user has scrolled up to read something, so I don't want to disturb them.

Anyway, unless there's some configuration which does this automatically, all I need is a way of determining the scroll position. Any ideas?

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.

  • Prev by Date: Any others...
  • Next by Date: Re: Garbage Collection for Cocoa?
  • Previous by thread: Re: Any others...
  • Next by thread: Re: Determining the scroll position of an NSTextView?
  • Index(es):
    • Date
    • Thread