Skip to content
This repository has been archived by the owner on Oct 14, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to using ARC
  • Loading branch information
Abizern committed Oct 5, 2011
1 parent 3a80e80 commit 4e6b397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions NSTimer+JCSBlocks.h
Expand Up @@ -7,6 +7,7 @@
// //
// Additions to NSTimer that allow it to use blocks as callbacks // Additions to NSTimer that allow it to use blocks as callbacks
// Requires standard PCH macros for ZAssert() // Requires standard PCH macros for ZAssert()
// Requires compilation with ARC


#import <Foundation/NSTimer.h> #import <Foundation/NSTimer.h>


Expand Down
3 changes: 1 addition & 2 deletions NSTimer+JCSBlocks.m
Expand Up @@ -17,11 +17,10 @@ + (void)handleBlockWithTimer:(NSTimer *)timer;
@implementation NSTimer (JCSBlocks) @implementation NSTimer (JCSBlocks)


+ (NSTimer *)jcs_scheduledTimerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats blockHandler:(timerCallback_t)block { + (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 @end


@implementation NSTimer (JCSBlocks_Private) @implementation NSTimer (JCSBlocks_Private)
Expand Down

0 comments on commit 4e6b397

Please sign in to comment.