Forked Enjoy, mouse movement
[enjoyable.git] / Config.m
diff --git a/Config.m b/Config.m
new file mode 100644 (file)
index 0000000..de3c1cc
--- /dev/null
+++ b/Config.m
@@ -0,0 +1,26 @@
+//
+//  Config.m
+//  Enjoy
+//
+//  Created by Sam McCall on 4/05/09.
+//
+
+@implementation Config
+
+-(id) init {
+       if(self=[super init]) {
+               entries = [[NSMutableDictionary alloc] init];
+       }
+       return self;
+}
+
+@synthesize protect, name, entries;
+
+-(void) setTarget:(Target*)target forAction:(id)jsa {
+       [entries setValue:target forKey: [jsa stringify]];
+}
+-(Target*) getTargetForAction: (id) jsa {
+       return [entries objectForKey: [jsa stringify]];
+}
+
+@end