Re: How is "Apple + Ctrl + D" implemented?
Re: How is "Apple + Ctrl + D" implemented?
- Subject: Re: How is "Apple + Ctrl + D" implemented?
- From: John Joyce <email@hidden>
- Date: Mon, 28 Apr 2008 07:35:26 -0500
Graham,
Thanks for your reply! But how can I "find the range of the word"
given
the glyph index? I just can not find an API doing so.
So I don't think this is the underlying implementation. Any comments
from others?
The range of the word is up to you to find and depends on the
language. If it is any common language from Europe, your job is a lot
easier. You mainly need to work with whitespace and punctuation. If
you're working with Japanese, you'll need to learn of lot of complex
tricks to identify the range of words...
As for the implementation of the keyboard shortcut, you'll find it
appears in Sys Prefs > Keyboard & Mouse > Keyboard Shortcuts ,
Dictionary.
That being the case, it is possible to turn off the existing
shortcut. It may not be feasible or reliable to do so
programmatically. Apple is free to set these shortcuts to anything at
any time and at any level. You may need to instruct your users on how
to change the keyboard shortcut(s).
The hard part is finding something available. Some things are taken
up system wide, some are taken up on within apps.
The only way to wrest control of these is with an input manager, but
that may not be worth the trouble.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden