projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up a bunch of properties; remove unused ones, use automatic ones where possible...
[enjoyable.git]
/
JSAction.m
diff --git
a/JSAction.m
b/JSAction.m
index
a0fab80
..
6903c56
100644
(file)
--- a/
JSAction.m
+++ b/
JSAction.m
@@
-5,23
+5,32
@@
// Created by Sam McCall on 4/05/09.
//
// Created by Sam McCall on 4/05/09.
//
+#import "JSAction.h"
+
@implementation JSAction
@implementation JSAction
-@synthesize usage, cookie, index, subActions, base, name;
+- (id)initWithName:(NSString *)newName base:(JSAction *)newBase {
+ if ((self = [super init])) {
+ self.name = newName;
+ self.base = newBase;
+ }
+ return self;
+}
--
(id) findSubActionForValue: (IOHIDValueRef)
value {
-
return NULL;
+-
(id)findSubActionForValue:(IOHIDValueRef)
value {
+ return NULL;
}
}
--
(NSString*) stringify
{
-
return [[NSString alloc] initWithFormat: @"%@~%d",[base stringify],(int)cooki
e];
+-
(NSString *)uid
{
+
return [NSString stringWithFormat:@"%@~%@", [_base uid], _nam
e];
}
}
--(void) notifyEvent: (IOHIDValueRef) value {
- [self doesNotRecognizeSelector:_cmd];
+
+- (void)notifyEvent:(IOHIDValueRef)value {
+ [self doesNotRecognizeSelector:_cmd];
}
}
--(BOOL) active {
- [self doesNotRecognizeSelector:_cmd];
-
return NO
;
+
+- (float)magnitude {
+
return 0.f
;
}
@end
}
@end