Added notes to the TODO. Matt, please check and modify TODO as required :)
[MenuTunes.git] / KeyCombo.h
1 //
2 //  KeyCombo.h
3 //
4 //  Created by Quentin D. Carnicelli on Tue Jun 18 2002.
5 //  Copyright (c) 2001 Subband inc.. All rights reserved.
6 //
7
8 #import <Foundation/Foundation.h>
9
10
11 @interface KeyCombo : NSObject <NSCopying, NSCoding>
12 {
13     short mKeyCode;
14     long mModifiers;
15 }
16
17 + (id)keyCombo;
18 + (id)clearKeyCombo;
19 + (id)keyComboWithKeyCode:(short)keycode andModifiers:(long)modifiers;
20
21 - (id)initWithKeyCode:(short)keycode andModifiers:(long)modifiers;
22
23 - (id)copyWithZone:(NSZone *)zone;
24 - (BOOL)isEqual:(id)object;
25
26 - (short)keyCode;
27 - (short)modifiers;
28
29 - (BOOL)isValid;
30
31 - (NSString *)userDisplayRep;
32 + (NSDictionary *)keyCodesDictionary;
33
34 @end
35
36 @interface NSUserDefaults (KeyComboAdditions)
37
38 - (void)setKeyCombo: (KeyCombo *)combo forKey: (NSString *)key;
39 - (KeyCombo *)keyComboForKey: (NSString *)key;
40
41 @end