Skip to content

Instantly share code, notes, and snippets.

@rvanzon
Last active December 14, 2015 09:18
Show Gist options
  • Save rvanzon/5063439 to your computer and use it in GitHub Desktop.
Save rvanzon/5063439 to your computer and use it in GitHub Desktop.
Adding performSelector:withObject:afterDelay:aDelay to the Objective-J Foundation
@implementation CPObject(delayedSelectorPerforming)
{
}
- (void)performSelector:(SEL)aSelector withObject:(id)anObject afterDelay:(CPTimeInterval)aDelay
{
setTimeout(function() { objj_msgSend(self, aSelector, anObject); }, aDelay * 1000);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment