Mac OS X Reference Library Apple Developer Connection spyglass button

NSSpeechRecognizerDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.6 and later.
Companion guide
Declared in
NSSpeechRecognizer.h

Overview

The NSSpeechRecognizerDelegate protocol defines the optional methods implemented by delegates of NSSpeechRecognizer objects.

Tasks

Recognizing Commands

Instance Methods

speechRecognizer:didRecognizeCommand:

Invoked when the recognition engine has recognized the application command command.

- (void)speechRecognizer:(NSSpeechRecognizer *)sender didRecognizeCommand:(id)command

Discussion

command is one of the strings from the array passed to setCommands:. The delegate typically evaluates which command was recognized and performs the related action.

Availability
  • Available in Mac OS X v10.3 and later.
  • Available as part of an informal protocol prior to Mac OS X v10.6.
Declared In
NSSpeechRecognizer.h


Last updated: 2009-04-22

Did this document help you? Yes It's good, but... Not helpful...