X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.m;h=0216e582f1e3729c1a61d8231dc36a7c6eab3a80;hp=f96c10d878adc5dd7a9c6c2ddb73c385d36da911;hb=2fb801b58b29997f54443d9879d2e20ae8b169ad;hpb=3f6df7a954fb74bcebf6fc6c0e60821843b0f31b diff --git a/JSAction.m b/JSAction.m index f96c10d..0216e58 100644 --- a/JSAction.m +++ b/JSAction.m @@ -10,7 +10,6 @@ @implementation JSAction @synthesize cookie; -@synthesize index; @synthesize children; @synthesize base; @synthesize name; @@ -28,11 +27,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:@"%@~%@", [self.base uid], self.name]; } - (void)notifyEvent:(IOHIDValueRef)value {