diff -r d84d25d6cdbb -r 59addced5e2a Target.h --- a/Target.h Sat Mar 08 21:04:41 2008 -0800 +++ b/Target.h Fri May 02 12:49:43 2008 -0700 @@ -9,9 +9,18 @@ #import -#define $target(RCVR,METHOD) _mktarget((RCVR),@selector(METHOD)) +@interface MYTarget : NSObject +{ + id _invocations; // May be an NSInvocation, or an NSMutableArray of them +} -id $calltarget( NSInvocation *target, id sender ); ++ (MYTarget*) targetWithReceiver: (id)receiver action: (SEL)action; +- (void) addTarget: (MYTarget*)target; -NSInvocation* _mktarget( id rcvr, SEL action ); +- (id) invokeWithSender: (id)sender; + +@end + + +#define $target(RCVR,METHOD) [MYTarget targetWithReceiver: (RCVR) action: @selector(METHOD)]