0

Open a TextEdit document with a few words in it. Notice that when you right click on a word, you can click "Look up (Word)" to get its definition or "Speech Start Speaking" to hear it read out aloud.

How can I build a local application to monitor globally whenever a user has requested a dictionary definition or the speech synthesizer?

4

1 回答 1

0

我能想到的几种方法是

  1. 注射和挂钩。如果它的可可应用程序你也可以尝试调配。我认为使用这种方法很容易管理你正在尝试做的事情。但这可能是很多工作。

  2. 如果您遵循苹果技术,那么他们必须发送可以在应用程序之间捕获的通知。试着找到它们,你就完成了。

于 2011-11-14T17:31:02.073 回答