Re: Forcing a scroll to the top of an NSScrollView
Re: Forcing a scroll to the top of an NSScrollView
- Subject: Re: Forcing a scroll to the top of an NSScrollView
- From: Pontus Ilbring <email@hidden>
- Date: Fri, 5 Aug 2005 11:25:25 +0200
On 8/4/05, Adam Holt <email@hidden> wrote:
> Hi,
>
> I'm trying to force my scrollview to scroll to the top. I've tried a few
> things but neither have worked, including:
>
> [myScrollView scrollPoint:NSZeroPoint];
scrollPoint: scrolls the receiver's ancestor clip view and not the
receiver itself, which is why sending scrollPoint: to the scroll view
does nothing. You have to send the message to the scroll view's
contents:
[[myScrollView documentView] scrollPoint:NSZeroPoint];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden