How to use DictationServices.framework

左心房为你撑大大i 提交于 2019-12-19 04:21:43

问题


Mac 10.8 contains the private DictationServices.framework

It would never get approved in the App Store but just out of interest: How could one make use of its private classes, methods and messages?

root:~/DictationServices.framework$ strings DictationServices 

reveals the following:

  • SOMicrophonePopUpButton SOMicrophoneView SOMicrophoneLevelMeterController SOEnableDictationPanelController SODictationHotKeyController SOEnableDictationDelegate

    logDictationFinished:serverError:

    com.apple.message.dictationstatus com.apple.speech.recognition.AppleSpeechRecognition.prefs


回答1:


Have you tried using class dump to extract the header files? It should just be a matter of including those headers in your project and linking to the framework.



来源:https://stackoverflow.com/questions/11702804/how-to-use-dictationservices-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!