Get text under mouse cursor in mac osx leopard/snow leopard

Posted by Liuyi Sun on Stack Overflow See other posts from Stack Overflow or by Liuyi Sun
Published on 2010-05-18T15:18:02Z Indexed on 2010/05/18 15:20 UTC
Read the original article Hit count: 673

Filed under:
|

Hi there, is there any idea for getting the text under the mouse cursor?

I'm trying to build a dictionary app, that pops up a panel of translates when mouse hangs over a word.

I took a look at the accessiblity apis, and it only can find the current ui element, but not the current word...

my last choice will be makeing screenshots frequently, and doing ocr... that'll be cpu consuming, I don't like that..

any idea for this? thanks in advance!

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about mac