Xcode warns you that the setDelegate method expects an instance of a class that implements the NSSpeechSynthesizerDelagate protocol. Now you have it, but you probably just forgot to announce that you have it. In your class declaration, change
@class AppController : NSObject
to
@class AppController : NSObject<NSSpeechSynthesizerDelegate>
to tell the world "I obey NSSpeechSynthesizerDelegate !" and keep silent the warning. You never know - you may be warned that you forgot to implement some optional delegation methods and save yourself from the annoying error somewhere in the queue.
source share