• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WebView Mouse Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebView Mouse Events


  • Subject: WebView Mouse Events
  • From: haym37 <email@hidden>
  • Date: Sun, 16 Apr 2006 19:21:47 -0400

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


  • Prev by Date: Re: does windowDidClose or not?
  • Next by Date: Printing resolution problems
  • Previous by thread: Re: does windowDidClose or not?
  • Next by thread: WebView Mouse Events
  • Index(es):
    • Date
    • Thread