Re: Scroller position
Re: Scroller position
- Subject: Re: Scroller position
- From: Jason Harris <email@hidden>
- Date: Sun, 23 Jun 2002 12:33:33 -0700
I just ran into this problem. Before you remove the original documentView
from the NSScrollView and replace it with the new view, do
[originalDocumentView setFrame: NSZeroRect];
[scrollView setDocumentView: nil];
Jason Harris
Jeremy Dronfield Tried to Tell Me:
>
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.
_______________________________________________
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.