Re: RESEND: How do enforce a scrollPageDown on a view?
Re: RESEND: How do enforce a scrollPageDown on a view?
- Subject: Re: RESEND: How do enforce a scrollPageDown on a view?
- From: Steve Palmer <email@hidden>
- Date: Thu, 11 Aug 2005 08:31:23 -0700
OK, so back to my original question. I just figured out what is going
on here.
scrollPageDown completes the scroll and returns immediately if smooth
scrolling is disabled. If smooth scrolling is enabled, it schedules a
timer to perform the scroll then returns immediately. Thus it isn't
possible to determine whether or not the scroll succeeded unless you
wait an appreciable amount of time for the scrolling to begin before
testing the visible rect coordinates.
So I'm going to try changing tack and see if I can figure ahead of
time whether scrollPageDown will actually DO anything.
- Steve
On Aug 11, 2005, at 6:52am, glenn andreas wrote:
On Aug 11, 2005, at 12:12 AM, Steve Palmer wrote:
OK, let me try another simpler question:
How do I get at the NSScrollView for a WebView?
If I can work that out then I can try something with
scrollRectToVisible to get around the problem.
You don't really - it may not have one. WebView is basically just
a container that holds other things - it's not inside an
NSScrollView. Instead, typically, there is a WebFrameView inside
the webview (or perhaps more than one), and inside _that_
WebFrameView is a WebDynamicScrollBarsView (which is a subclass of
WebCoreScrollView which finally is a subclass of NSScrollView).
And if there are multiple frames in the in web page, well, then
that root WebFrameView ultimately contains multiple WebFrameViews
which in turn contain scrolls views.
So basically, there is no "the" scroll view - there may be more
than one (and some of them don't do anything).
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
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