Scroller position
Scroller position
- Subject: Scroller position
- From: Jeremy Dronfield <email@hidden>
- Date: Sun, 23 Jun 2002 16:38:46 +0100
I'm trying to manipulate the scroll position of an NSTextView. When a
new .rtf file loads into the View, replacing the previous contents (I'm
using the same view here, rather than separate documents), I want the
View to snap back to the top, regardless of where it was scrolled to
when the user finished reading the first text file. I don't seem to be
able to access NSScroller's setFloatValue method - NSScrollView doesn't
respond to it. Do I need to create a new TextView instance just to get
this effect? I need the equivalent of REALbasic's
"Field.ScrollPosition =" (It must be in the API somewhere, for REALbasic
to access it).
- Jeremy
_______________________________________________
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.