listening for media keyboards, saving text and position show what you're reading
This commit is contained in:
parent
925bd4a7a2
commit
277b97d7a7
9 changed files with 311 additions and 437 deletions
|
@ -8,16 +8,19 @@
|
|||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface SpeakerAppDelegate : NSObject <NSApplicationDelegate> {
|
||||
@interface SpeakerAppDelegate : NSObject <NSApplicationDelegate, NSSpeechSynthesizerDelegate> {
|
||||
NSWindow *window;
|
||||
NSTextView *textView;
|
||||
NSSpeechSynthesizer *synth;
|
||||
NSRange oldRange;
|
||||
BOOL isNewLocation;
|
||||
}
|
||||
|
||||
@property (assign) IBOutlet NSWindow *window;
|
||||
@property (retain, nonatomic) IBOutlet NSTextView *textView;
|
||||
|
||||
-(IBAction)speakAction:(id)sender;
|
||||
-(IBAction)seekForward:(id)sender;
|
||||
-(IBAction)seekBack:(id)sender;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue