5 // Created by Sam McCall on 4/05/09.
10 @implementation Config {
11 NSMutableDictionary *entries;
14 @synthesize protect, name, entries;
17 if ((self = [super init])) {
18 entries = [[NSMutableDictionary alloc] init];
23 - (Target *)objectForKeyedSubscript:(JSAction *)action {
24 return action ? entries[action.uid] : nil;
27 - (void)setObject:(Target *)target forKeyedSubscript:(JSAction *)action {
30 entries[action.uid] = target;
32 [entries removeObjectForKey:action.uid];