Remove printf.
[enjoyable.git] / JSAction.m
index 8576b2f..6903c56 100644 (file)
@@ -9,19 +9,20 @@
 
 @implementation JSAction
 
-@synthesize cookie;
-@synthesize index;
-@synthesize children;
-@synthesize base;
-@synthesize name;
-@synthesize active;
+- (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;
 }
 
-- (NSString *)stringify {
-    return [NSString stringWithFormat: @"%@~%p", [base stringify], cookie];
+- (NSString *)uid {
+    return [NSString stringWithFormat:@"%@~%@", [_base uid], _name];
 }
 
 - (void)notifyEvent:(IOHIDValueRef)value {