WebView Scroll to end
WebView Scroll to end
- Subject: WebView Scroll to end
- From: Hasan Diwan <email@hidden>
- Date: Sun, 25 Jul 2004 17:39:51 -0700
I have a webview. I'd like it to scroll to the end of the document on
reload. I tried the following and am now stumped:
- I searched the archives and found someone asked the same question in
February of Last year, to no avail.
- Reading the available methods in NSView, I noticed that there's a
scrollPoint. I then put a call to it in my application, to no avail.
- I then noticed NSResponder has a method moveToEndOfDocument:, after
adding a call to that method in my application, I got selector not
recognised.
- I repeated the last two using [[webView mainFrame] frameView] as my
source in lieu of webView and was rewarded with the same result.
- After struggling with this all weekend, I decided to post my
question to the mailing list.
Also, I was wondering if there's any way to disable drag and drop on a
WebView. I tried adding a WebView category as follows:
@implementation WebView (MyWebView)
- (BOOL)performDragOperation:(id <NSDraggingInfo>)drag {
return NO;
}
- (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender {
return NSDragOperationNone;
}
@end
This didn't solve the problem either. What gives? Thanks in advance!
--
Cheers,
Hasan Diwan <email@hidden>
_______________________________________________
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.