mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
mark reference private
This commit is contained in:
parent
8833cd2a30
commit
4f35428ff3
@ -30,8 +30,10 @@ dispatch_message(NSSS *self, MessageType which, unsigned long val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@interface SynthesizerDelegate : NSObject <NSSpeechSynthesizerDelegate> {
|
@interface SynthesizerDelegate : NSObject <NSSpeechSynthesizerDelegate> {
|
||||||
NSSS *parent;
|
@private
|
||||||
|
NSSS *nsss;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)initWithNSSS:(NSSS *)x;
|
- (id)initWithNSSS:(NSSS *)x;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@ -39,18 +41,18 @@ dispatch_message(NSSS *self, MessageType which, unsigned long val) {
|
|||||||
|
|
||||||
- (id)initWithNSSS:(NSSS *)x {
|
- (id)initWithNSSS:(NSSS *)x {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) parent = x;
|
nsss = x;
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)speechSynthesizer:(NSSpeechSynthesizer *)sender didFinishSpeaking:(BOOL)success {
|
- (void)speechSynthesizer:(NSSpeechSynthesizer *)sender didFinishSpeaking:(BOOL)success {
|
||||||
dispatch_message(parent, END, success);
|
dispatch_message(nsss, END, success);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)speechSynthesizer:(NSSpeechSynthesizer *)sender didEncounterSyncMessage:(NSString *)message {
|
- (void)speechSynthesizer:(NSSpeechSynthesizer *)sender didEncounterSyncMessage:(NSString *)message {
|
||||||
NSError *err = nil;
|
NSError *err = nil;
|
||||||
NSNumber *syncProp = (NSNumber*) [sender objectForProperty: NSSpeechRecentSyncProperty error: &err];
|
NSNumber *syncProp = (NSNumber*) [sender objectForProperty: NSSpeechRecentSyncProperty error: &err];
|
||||||
if (syncProp && !err) dispatch_message(parent, MARK, syncProp.unsignedLongValue);
|
if (syncProp && !err) dispatch_message(nsss, MARK, syncProp.unsignedLongValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user