listening for media keyboards, saving text and position show what you're reading

This commit is contained in:
Jeena Paradies 2010-11-18 07:47:04 +01:00
parent 925bd4a7a2
commit 277b97d7a7
9 changed files with 311 additions and 437 deletions

View file

@ -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