aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DomeKey/HeadphoneKey.h2
-rw-r--r--DomeKey/HeadphoneKey.m6
2 files changed, 4 insertions, 4 deletions
diff --git a/DomeKey/HeadphoneKey.h b/DomeKey/HeadphoneKey.h
index c1b8e85..59c2b49 100644
--- a/DomeKey/HeadphoneKey.h
+++ b/DomeKey/HeadphoneKey.h
@@ -28,6 +28,6 @@ static const unsigned int TIMEOUT_MILLISECONDS = 1000;
}
- (void)handleDeadKey:(HeadphoneButton)button;
-- (void)maybeRunAction;
+- (void)runAction;
@end
diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m
index d5fdb8d..1d815b2 100644
--- a/DomeKey/HeadphoneKey.m
+++ b/DomeKey/HeadphoneKey.m
@@ -54,16 +54,16 @@
[_key_buffer addObject:storable_button];
[NSObject cancelPreviousPerformRequestsWithTarget:self
- selector:@selector(maybeRunAction)
+ selector:@selector(runAction)
object:nil];
NSTimeInterval timeout_seconds = TIMEOUT_MILLISECONDS / 1000.0;
- [self performSelector:@selector(maybeRunAction)
+ [self performSelector:@selector(runAction)
withObject:nil
afterDelay:timeout_seconds];
}
-- (void)maybeRunAction
+- (void)runAction
{
NSLog(@"%@", _key_buffer);