Posted: Fri Dec 05, 2008 9:58 pm Post subject: Where is the support for that shortcut?!
OK, NeoOffice 2.2.5 patch x brings support for Mac OS X Services. That is really good. The most service which I regularly use is Dictionary. It now works with the new feature BUT! I cannot access it using the normal OS-wide keyboard shortcut, which is Cmd-Ctrl-D. Please add support for this short-cut (or any other). It might be difficult to show that minimal Apple's pop-up window in NeoOffice, but you still can add a shortcut to open Dictionary application and send the highlighted word to it.
Posted: Fri Dec 05, 2008 11:04 pm Post subject: Re: Where is the support for that shortcut?!
The Dictionary pop-up (or lookup, depending on the preference setting in Dictionary) via hovering and Cmd-Ctrl-D is something different altogether from Mac OS X Services (and the "Look Up in Dictionary" service specifically). The feature requires a hefty dose of support for the Apple Accessibility APIs, which I don't think the Core OpenOffice.org code supports at all….
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
I searched through the Apple developer documentation to see if there is an programmatic API that we can use to implement this feature and, unfortunately, there is none.
Apparently Apple has buried this functionality inside of their NSTextView control. Like we found in bug 1199, this feature is only available if you program your application to use an NSTextView object to handle all text input and display.
Why Apple buried this functionality is beyond me, but until they make it invocable by public APIs, it will not be feasible for NeoOffice to implement this functionality.
The problem is that NSTextView is basically an embeddable version of the TextEdit application so using an NSTextView would basically mean replacing most of the existing Mac OS X code with TextEdit. In other words, the only way to get this feature is to turn NeoOffice into TextEdit. This is why applications that are not built around TextEdit like Firefox, Terminal, and NeoOffice can never implement this functionality.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum