Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NSTimer+Blocks.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ +(id)scheduledTimerWithTimeInterval:(NSTimeInterval)inTimeInterval block:(void (
{
void (^block)() = [inBlock copy];
id ret = [self scheduledTimerWithTimeInterval:inTimeInterval target:self selector:@selector(jdExecuteSimpleBlock:) userInfo:block repeats:inRepeats];
#if !__has_feature(objc_arc)
[block release];
#endif
return ret;
}

+(id)timerWithTimeInterval:(NSTimeInterval)inTimeInterval block:(void (^)())inBlock repeats:(BOOL)inRepeats
{
void (^block)() = [inBlock copy];
id ret = [self timerWithTimeInterval:inTimeInterval target:self selector:@selector(jdExecuteSimpleBlock:) userInfo:block repeats:inRepeats];
#if !__has_feature(objc_arc)
[block release];
#endif
return ret;
}

Expand Down