Re: Getting the scroll position
Re: Getting the scroll position
- Subject: Re: Getting the scroll position
- From: John Randolph <email@hidden>
- Date: Wed, 26 May 2004 12:32:26 -0700
On Apr 25, 2004, at 4:34 AM, Jesus De Meyer wrote:
Hello,
For my application I need to find out if the current page has reached
the bottom so I can do other stuff. The page itself is a WebView.
Does anyone know how to find out if I have reached the bottom of the
page, or with other words if can still scroll down?
Try something like this:
@implementation NSScrollView (canStillScrollDown)
- (BOOL) isAtBottom
{
id scroll = [self verticalScroller];
return ([scroll knobProportion] == 1.0] || [scroll floatValue] == 1.0);
}
@end
HTH,
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.