Browse files

Update to using ARC

  • Loading branch information...
1 parent 3a80e80 commit 4e6b397cba016fa94bf048c39ef95c5c5195fb0a @Abizern committed Oct 5, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −0 NSTimer+JCSBlocks.h
  2. +1 −2 NSTimer+JCSBlocks.m
View
1 NSTimer+JCSBlocks.h
@@ -7,6 +7,7 @@
//
// Additions to NSTimer that allow it to use blocks as callbacks
// Requires standard PCH macros for ZAssert()
+// Requires compilation with ARC
#import <Foundation/NSTimer.h>
View
3 NSTimer+JCSBlocks.m
@@ -17,11 +17,10 @@ + (void)handleBlockWithTimer:(NSTimer *)timer;
@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] autorelease] repeats:repeats];
+ return [self scheduledTimerWithTimeInterval:seconds target:self selector:@selector(handleBlockWithTimer:) userInfo:[block copy] repeats:repeats];
}
-
@end
@implementation NSTimer (JCSBlocks_Private)

0 comments on commit 4e6b397

Please sign in to comment.