forked from drdrang/jumpcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSRValidator.h
34 lines (26 loc) · 834 Bytes
/
SRValidator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// SRValidator.h
// ShortcutRecorder
//
// Copyright 2006-2007 Contributors. All rights reserved.
//
// License: BSD
//
// Contributors:
// David Dauer
// Jesper
// Jamie Kirkpatrick
#import <Cocoa/Cocoa.h>
@interface SRValidator : NSObject {
id delegate;
}
- (id) initWithDelegate:(id)theDelegate;
- (BOOL) isKeyCode:(signed short)keyCode andFlagsTaken:(unsigned int)flags error:(NSError **)error;
- (BOOL) isKeyCode:(signed short)keyCode andFlags:(unsigned int)flags takenInMenu:(NSMenu *)menu error:(NSError **)error;
- (id) delegate;
- (void) setDelegate: (id) theDelegate;
@end
#pragma mark -
@interface NSObject( SRValidation )
- (BOOL) shortcutValidator:(SRValidator *)validator isKeyCode:(signed short)keyCode andFlagsTaken:(unsigned int)flags reason:(NSString **)aReason;
@end