How to use DictationServices.framework
Asked Answered
R

1

2

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

Retaliate answered 28/7, 2012 at 16:39 Comment(0)
P
2

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.

Photima answered 28/7, 2012 at 17:11 Comment(3)
thanks, class-dump is much nicer than otool -fahlLDtdorSTMRIHvVcXm ;}Retaliate
nice, that gives all the methods in @interface SODictationPreferences ... however getting access to an instance of SODictationPreferences is probably not trivial.(?) Follow up question: How to set gdb breakpoints on private interface methods.Retaliate
#11703885Retaliate

© 2022 - 2024 — McMap. All rights reserved.