Permalink
Browse files

Add a prefix to the private method as well

  • Loading branch information...
Abizer Nasir
Abizer Nasir committed Nov 8, 2011
1 parent 8716fed commit 494e0a60d2c2912b05e510e8c52c0de17b76460c
Showing with 3 additions and 3 deletions.
  1. +3 −3 NSTimer+JCSBlocks.m
View
@@ -10,22 +10,22 @@
@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];
}
@end
@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];

0 comments on commit 494e0a6

Please sign in to comment.