Skip navigation.
 
mlHow is "Apple + Ctrl + D" implemented?
FROM : Ying Bian
DATE : Mon Apr 28 07:55:30 2008

Hi,



I am thinking of developing my own dictionary tool which can detects the
word

under the cursor and automatically (or when a modifier key is pressed) popup
a

translation window.



After researching for a while, I find it more tricky than I estimated.



The accessibility APIs may of help, but for text in a text view, the
returned information

is not enough to reproduce the layout and let me detect the "exact" word
over which the

mouse hovers.



There is a similar functionality in Lepoard (I am not sure if it exists
prior to 10.5):

in any cocoa-based applications, if you press Apple + Ctrl + D, the current
word under

cursor is automatically selected and translated in a popup window.  It seems
to me not

implemented with accessibility APIs as it does not require to enable access
for assistive

devices in the Universal Access System Preference panel.



Then, how is this implemented?  I want to get some hints from this.



Thanks,

--
B.Y.

Related mailsAuthorDate
mlHow is "Apple + Ctrl + D" implemented? Ying Bian Apr 28, 07:55
mlRe: How is "Apple + Ctrl + D" implemented? Graham Cox Apr 28, 08:51
mlRe: How is "Apple + Ctrl + D" implemented? Ying Bian Apr 28, 12:06
mlRe: How is "Apple + Ctrl + D" implemented? Graham Cox Apr 28, 12:36
mlRe: How is "Apple + Ctrl + D" implemented? Graham Cox Apr 28, 12:42
mlRe: How is "Apple + Ctrl + D" implemented? Graham.Lee Apr 28, 12:48
mlRe: How is "Apple + Ctrl + D" implemented? John Joyce Apr 28, 14:35
mlRe: How is "Apple + Ctrl + D" implemented? Ying Bian Apr 28, 15:25
mlRe: How is "Apple + Ctrl + D" implemented? Evan Gross Apr 29, 05:45
mlRe: How is "Apple + Ctrl + D" implemented? John Stiles Apr 29, 19:20
mlRe: How is "Apple + Ctrl + D" implemented? Keith Blount Apr 29, 21:12
mlRe: How is "Apple + Ctrl + D" implemented? John Stiles Apr 29, 22:36
mlRe: How is "Apple + Ctrl + D" implemented? Nathan Vander Wilt Apr 30, 17:00
mlRe: How is "Apple + Ctrl + D" implemented? Evan Gross May 1, 01:14
mlRe: How is "Apple + Ctrl + D" implemented? Deborah Goldsmith May 7, 22:28