Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 571 Bytes
// NSInvocation+blocks.h - http://github.com/rentzsch/NSInvocation-blocks
// Copyright (c) 2010 Jonathan 'Wolf' Rentzsch: http://rentzsch.com
// Some rights reserved: http://opensource.org/licenses/mit-license.php
// http://github.com/rentzsch/NSInvocation-blocks
@interface NSInvocation (blocks)
/*
Usage example:
NSInvocation *invocation = [NSInvocation jr_invocationWithTarget:myObject block:^(id myObject){
[myObject someMethodWithArg:42.0];
}];
*/
+ (id)jr_invocationWithTarget:(id)target block:(void (^)(id target))block;
@end