2013-04-24

Cocoa WebView getting DOM element under mouse pointer

Views: 4790 | Add Comments

Cocoa WebView get DOM element under mouse pointer:

NSPoint point = [theEvent locationInWindow];
NSDictionary *dict = [webView elementAtPoint:point];
DOMNode *node = [dict objectForKey:@"WebElementDOMNode"];
Posted by ideawu at 2013-04-24 11:39:38

Leave a Comment