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

Anno2001
  • 1,343
  • 12
  • 17

1 Answers1

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.

  • thanks, class-dump is much nicer than otool -fahlLDtdorSTMRIHvVcXm ;} – Anno2001 Jul 28 '12 at 17:24
  • 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. – Anno2001 Jul 28 '12 at 17:32
  • http://stackoverflow.com/questions/11703385/how-to-set-gdb-breakpoints-on-private-interface-methods – Anno2001 Jul 28 '12 at 18:26