问题
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