X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.m;h=6903c56f922238a789e90d351b7faf9631a8dc07;hp=f96c10d878adc5dd7a9c6c2ddb73c385d36da911;hb=68fe4de58269fc00e70e59453e05098ccd4341a2;hpb=3f6df7a954fb74bcebf6fc6c0e60821843b0f31b diff --git a/JSAction.m b/JSAction.m index f96c10d..6903c56 100644 --- a/JSAction.m +++ b/JSAction.m @@ -9,13 +9,6 @@ @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; @@ -28,11 +21,8 @@ return NULL; } -- (NSString *)stringify { - if (cookie) - return [NSString stringWithFormat: @"%@~%p", [base stringify], cookie]; - else - return [NSString stringWithFormat: @"%@~%@", [base stringify], name]; +- (NSString *)uid { + return [NSString stringWithFormat:@"%@~%@", [_base uid], _name]; } - (void)notifyEvent:(IOHIDValueRef)value {