Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (28 sloc) 0.843 kb
ab71653 @justin Initial Repository Import
justin authored
1 //
2 // SGKeyCombo.h
3 // SGHotKeyCenter
4 //
5 // Created by Justin Williams on 7/26/09.
6 // Copyright 2009 Second Gear. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10
11 @interface SGKeyCombo : NSObject {
12 NSInteger keyCode;
13 NSInteger modifiers;
14 }
15
16 @property (nonatomic, assign) NSInteger keyCode;
17 @property (nonatomic, assign) NSInteger modifiers;
18
19 + (id)clearKeyCombo;
20 + (id)keyComboWithKeyCode:(NSInteger)theKeyCode modifiers:(NSInteger)theModifiers;
21 - (id)initWithKeyCode:(NSInteger)theKeyCode modifiers:(NSInteger)theModifiers;
22
23 - (id)initWithPlistRepresentation:(id)thePlist;
24 - (id)plistRepresentation;
25
26 - (BOOL)isEqual:(SGKeyCombo *)theCombo;
27
28 - (BOOL)isClearCombo;
29 - (BOOL)isValidHotKeyCombo;
30
31 @end
32
33 @interface SGKeyCombo (UserDisplayAdditions)
34 - (NSString *)description;
35 - (NSString *)keyCodeString;
36 - (NSUInteger)modifierMask;
37 @end
38
Something went wrong with that request. Please try again.