1 //--------------------------------------------------------------------------------------- 2 // $Id$ 3 // Copyright (c) 2010 by Mulle Kybernetik. See License file for details. 4 //--------------------------------------------------------------------------------------- 5 6 #import <Foundation/Foundation.h> 7 8 #if NS_BLOCKS_AVAILABLE 9 10 @interface OCMBlockCaller : NSObject 11 { 12 void (^block)(NSInvocation *); 13 } 14 15 - (id)initWithCallBlock:(void (^)(NSInvocation *))theBlock; 16 17 - (void)handleInvocation:(NSInvocation *)anInvocation; 18 19 @end 20 21 #endif 22