Re: WebView Mouse Events
Re: WebView Mouse Events
- Subject: Re: WebView Mouse Events
- From: haym37 <email@hidden>
- Date: Mon, 24 Apr 2006 10:25:32 -0400
Thanks for your reply. However, I still cannot figure out how to
completely disable the WebView from receiving any mouse events. For
instance, when the user clicks a button, I do not want the WebView to
take any action (such as turn it dark blue), but rather, I would like
to receive the notification. Thanks!
On Apr 22, 2006, at 8:50 PM, George Orthwein wrote:
You shouldn't have to subclass... you can implement that method in
an assigned WebUIDelegate.
As for disabling links, have you tried this:
http://developer.apple.com/documentation/Cocoa/Conceptual/
DisplayWebContent/Tasks/PolicyDecisions.html
You may also want to check out the Webkitsdk-dev list.
george
On Apr 22, 2006, at 10:32 AM, haym37 wrote:
Hi,
I would like to able to override the mouseDown method for a
WebView, however, I have discovered that this method does not
exist with a WebView. After subclassing the WebView I, therefore,
used this:
- (void)webView:(WebView *)sender mouseDidMoveOverElement:
(NSDictionary *)elementInformation modifierFlags:(unsigned int)
modifierFlags
{
if ([[NSApp currentEvent] type] == NSLeftMouseUp)
NSLog(@"here");
}
That method works, however, it does not work when the user clicks
on a form element (i.e. button). I could place a transparent
NSView or NSWindow over the WebView and capture mouse events
through that, however, I want to be able to disable mouse events
(and key events) (so, for instance, when the user clicks on,
suppose, a button, nothing will occur (it won't be pressed down/
turn blue, etc.)) in the WebView as well as be notified when an
event occurs in the WebView.
Thanks!
_______________________________________________
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