Adding easy constructor for creating ITKeyCombos from Plist Representations
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Thu, 4 Sep 2003 02:28:10 +0000 (02:28 +0000)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Thu, 4 Sep 2003 02:28:10 +0000 (02:28 +0000)
ITKeyCombo.h
ITKeyCombo.m

index e6d1be0..5bda4c5 100755 (executable)
@@ -16,6 +16,7 @@
 
 + (id)clearKeyCombo;
 + (id)keyComboWithKeyCode: (int)keyCode modifiers: (int)modifiers;
 
 + (id)clearKeyCombo;
 + (id)keyComboWithKeyCode: (int)keyCode modifiers: (int)modifiers;
++ (id)keyComboWithPlistRepresentation: (id)plist;
 - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers;
 
 - (id)initWithPlistRepresentation: (id)plist;
 - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers;
 
 - (id)initWithPlistRepresentation: (id)plist;
index 1a70528..c0111a1 100755 (executable)
        return [[[self alloc] initWithKeyCode: keyCode modifiers: modifiers] autorelease];
 }
 
        return [[[self alloc] initWithKeyCode: keyCode modifiers: modifiers] autorelease];
 }
 
++ (id)keyComboWithPlistRepresentation: (id)plist
+{
+    return [[[self alloc] initWithPlistRepresentation: plist] autorelease];
+}
+
 - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers
 {
        self = [super init];
 - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers
 {
        self = [super init];