View Full Version : Webkit Element Highlighting
buckyballs
Jan 12, 2009, 10:21 AM
I know this is a very loose question, with a huge answer, I just need a point in the correct direction. Any help would be greatly appreciated
How would I go about highlighting the element under the mouse in a WebView, (similar to how you select an element for a Web Clip, or as seen in the LittleSnapper browser)?
Thanks in advance
BorgCopyeditor
Jan 12, 2009, 01:42 PM
I know this is a very loose question, with a huge answer, I just need a point in the correct direction. Any help would be greatly appreciated
How would I go about highlighting the element under the mouse in a WebView, (similar to how you select an element for a Web Clip, or as seen in the LittleSnapper browser)?
Thanks in advance
Check out the WebUIDelegate protocol, and particularly webView:mouseDidMoveOverElement:modifierFlags: (http://developer.apple.com/documentation/Cocoa/Reference/WebKit/Protocols/WebUIDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/instm/NSObject/webView:mouseDidMoveOverElement:modifierFlags:)
buckyballs
Jan 13, 2009, 03:54 AM
Wow.. that's much simpler than I thought it would be...
Thanks! :)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.