projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename from Enjoy/Enjoy2 to 'Enjoyable'. While I'm mucking in the project file, enabl...
[enjoyable.git]
/
Config.m
diff --git
a/Config.m
b/Config.m
index
727b8b0
..
5a83ed3
100644
(file)
--- a/
Config.m
+++ b/
Config.m
@@
-7,29
+7,28
@@
#import "Config.h"
#import "Config.h"
-@implementation Config {
- NSMutableDictionary *entries;
-}
+#import "JSAction.h"
-@
synthesize protect, name, entries;
+@
implementation Config
-- (id)init {
+- (id)init
WithName:(NSString *)name
{
if ((self = [super init])) {
if ((self = [super init])) {
- entries = [[NSMutableDictionary alloc] init];
+ self.name = name;
+ _entries = [[NSMutableDictionary alloc] init];
}
return self;
}
- (Target *)objectForKeyedSubscript:(JSAction *)action {
}
return self;
}
- (Target *)objectForKeyedSubscript:(JSAction *)action {
- return action ? entries[action.uid] : nil;
+ return action ?
_
entries[action.uid] : nil;
}
- (void)setObject:(Target *)target forKeyedSubscript:(JSAction *)action {
if (action) {
if (target)
}
- (void)setObject:(Target *)target forKeyedSubscript:(JSAction *)action {
if (action) {
if (target)
- entries[action.uid] = target;
+
_
entries[action.uid] = target;
else
else
- [entries removeObjectForKey:action.uid];
+ [
_
entries removeObjectForKey:action.uid];
}
}
}
}