Text Capture in Cocoa
Text Capture in Cocoa
- Subject: Text Capture in Cocoa
- From: Randy Crump <email@hidden>
- Date: Fri, 16 Jun 2006 10:54:59 -0700
Hi all,
I am developing a dictionary and want to support text capture using
the mouse.
I want to hover the mouse over any text on the screen (be it on a
button, on a web page,
in a document, or in Finder), and capture that word in my program,
then translate it.
For a real feeling, just try Apple's own dictionary: hover your mouse
over any word
in a document or web page, and press "Apple + Ctrl + D", a floating
panel will appear and
show the explanation of the word. That's the behavior I want to
implement.
Is there any Cocoa API that I can use to grab the word under the
mouse? Do I need to
intercept the drawing APIs? How can I do it?
Any advice is appreciated.
Yaogang
_______________________________________________
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
_______________________________________________
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