5 // Created by Quentin Carnicelli on Sat Aug 02 2003.
6 // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved.
11 #import "PTHotKeyCenter.h"
12 #import "PTKeyCombo.h"
14 @implementation PTHotKey
18 return [self initWithIdentifier: nil keyCombo: nil];
22 - (id)initWithIdentifier: (id)identifier keyCombo: (PTKeyCombo*)combo
28 [self setIdentifier: identifier];
29 [self setKeyCombo: combo];
37 [mIdentifier release];
44 - (NSString*)description
46 return [NSString stringWithFormat: @"<%@: %@, %@>", NSStringFromClass( [self class] ), [self identifier], [self keyCombo]];
51 - (void)setIdentifier: (id)ident
54 [mIdentifier release];
63 - (void)setKeyCombo: (PTKeyCombo*)combo
66 combo = [PTKeyCombo clearKeyCombo];
73 - (PTKeyCombo*)keyCombo
78 - (void)setName: (NSString*)name
90 - (void)setTarget: (id)target
100 - (void)setAction: (SEL)action
112 [mTarget performSelector: mAction withObject: self];