mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
NSSpeechSynthesizerDelegate: define protocol properly
Modern applications require NSSpeechSynthesizerDelegate to be an actual @protocol in order to conform to it. Here, we allow it to be one if we are on an Objective-C runtime that supports it.
This commit is contained in:
parent
fd6e7f2e42
commit
f665887c68
1 changed files with 6 additions and 1 deletions
|
@ -151,8 +151,13 @@ extern NSString *NSSpeechDictionaryEntryPhonemes;
|
|||
- (NSString *) phonemesFromText: (NSString *)text;
|
||||
@end
|
||||
|
||||
// Speech synthesizer delegate informal protocol...
|
||||
@protocol NSSpeechSynthesizerDelegate <NSObject>
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@optional
|
||||
#else
|
||||
@end
|
||||
@interface NSObject (NSSpeechSynthesizerDelegate)
|
||||
#endif
|
||||
- (void)speechSynthesizer: (NSSpeechSynthesizer *)sender
|
||||
didEncounterErrorAtIndex: (NSUInteger)index
|
||||
ofString: (NSString *)string
|
||||
|
|
Loading…
Reference in a new issue