// Created by Justin Williams on 7/26/09. // Copyright 2009 Second Gear. All rights reserved. return [self initWithIdentifier:nil keyCombo:nil]; - (id)initWithIdentifier:(id)theIdentifier keyCombo:(SGKeyCombo *)theCombo { if ((self = [super init])) { self.identifier = theIdentifier; self.keyCombo = theCombo; - (id)initWithIdentifier:(id)theIdentifier keyCombo:(SGKeyCombo *)theCombo target:(id)theTarget action:(SEL)theAction { if ((self = [super init])) { self.identifier = theIdentifier; self.keyCombo = theCombo; - (BOOL)matchesHotKeyID:(EventHotKeyID)theKeyID { return (hotKeyID.id == theKeyID.id) && (hotKeyID.signature == theKeyID.signature); [self.target performSelector:self.action withObject:self]; - (void)setKeyCombo:(SGKeyCombo *)theKeyCombo { theKeyCombo = [SGKeyCombo clearKeyCombo]; keyCombo = [theKeyCombo retain]; - (NSString *)description { return [NSString stringWithFormat: @"<%@: %@, %@>", NSStringFromClass([self class]),