I am new to xcode development. I canโt find a simple free and easy to use translator on Mac OS, so I decided to write it myself.
The most important function for this project is that it can receive text wherever it is on Mac OS, which means that I can select the text in the Preview when reading PDF files, either in the context menu or in the shortcut mode -cut - the perfect way start my translator.
My main question is: how to get selected text in xcode when waking up my translator? If you can tell me how to register a global context menu or short cut, I would also be very grateful.
Thanks:)
source share