From 2decf87be669b9e65e76abff193b2013ee41b86f Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Thu, 4 Sep 2003 02:28:10 +0000 Subject: [PATCH] Adding easy constructor for creating ITKeyCombos from Plist Representations --- ITKeyCombo.h | 1 + ITKeyCombo.m | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ITKeyCombo.h b/ITKeyCombo.h index e6d1be0..5bda4c5 100755 --- a/ITKeyCombo.h +++ b/ITKeyCombo.h @@ -16,6 +16,7 @@ + (id)clearKeyCombo; + (id)keyComboWithKeyCode: (int)keyCode modifiers: (int)modifiers; ++ (id)keyComboWithPlistRepresentation: (id)plist; - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers; - (id)initWithPlistRepresentation: (id)plist; diff --git a/ITKeyCombo.m b/ITKeyCombo.m index 1a70528..c0111a1 100755 --- a/ITKeyCombo.m +++ b/ITKeyCombo.m @@ -21,6 +21,11 @@ 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]; -- 2.20.1