Determining the scroll position of an NSTextView?
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.