Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a prefix to the private method as well

  • Loading branch information...
commit 494e0a60d2c2912b05e510e8c52c0de17b76460c 1 parent 8716fed
Abizer Nasir authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 NSTimer+JCSBlocks.m
View
6 NSTimer+JCSBlocks.m
@@ -10,14 +10,14 @@
@interface NSTimer (JCSBlocks_Private)
-+ (void)handleBlockWithTimer:(NSTimer *)timer;
++ (void)jcs_handleBlockWithTimer:(NSTimer *)timer;
@end
@implementation NSTimer (JCSBlocks)
+ (NSTimer *)jcs_scheduledTimerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats blockHandler:(timerCallback_t)block {
- return [self scheduledTimerWithTimeInterval:seconds target:self selector:@selector(handleBlockWithTimer:) userInfo:[block copy] repeats:repeats];
+ return [self scheduledTimerWithTimeInterval:seconds target:self selector:@selector(jcs_handleBlockWithTimer:) userInfo:[block copy] repeats:repeats];
}
@@ -25,7 +25,7 @@ + (NSTimer *)jcs_scheduledTimerWithTimeInterval:(NSTimeInterval)seconds repeats:
@implementation NSTimer (JCSBlocks_Private)
-+ (void)handleBlockWithTimer:(NSTimer *)timer {
++ (void)jcs_handleBlockWithTimer:(NSTimer *)timer {
ZAssert(([timer isValid] && [timer userInfo]), @"the timer is not valid");
timerCallback_t block = [timer userInfo];
Please sign in to comment.
Something went wrong with that request. Please try again.