X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.m;h=0cb98554bf020ba58c622924533e9da9ebadf23e;hp=f96c10d878adc5dd7a9c6c2ddb73c385d36da911;hb=25dd74a4a34f4ba7ec797360bd8f92cbd7bc758e;hpb=3f6df7a954fb74bcebf6fc6c0e60821843b0f31b diff --git a/JSAction.m b/JSAction.m index f96c10d..0cb9855 100644 --- a/JSAction.m +++ b/JSAction.m @@ -28,11 +28,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 {