1.1 --- a/Target.h Sat Mar 08 21:04:41 2008 -0800
1.2 +++ b/Target.h Fri May 02 12:49:43 2008 -0700
1.3 @@ -9,9 +9,18 @@
1.4 #import <Cocoa/Cocoa.h>
1.5
1.6
1.7 -#define $target(RCVR,METHOD) _mktarget((RCVR),@selector(METHOD))
1.8 +@interface MYTarget : NSObject
1.9 +{
1.10 + id _invocations; // May be an NSInvocation, or an NSMutableArray of them
1.11 +}
1.12
1.13 -id $calltarget( NSInvocation *target, id sender );
1.14 ++ (MYTarget*) targetWithReceiver: (id)receiver action: (SEL)action;
1.15
1.16 +- (void) addTarget: (MYTarget*)target;
1.17
1.18 -NSInvocation* _mktarget( id rcvr, SEL action );
1.19 +- (id) invokeWithSender: (id)sender;
1.20 +
1.21 +@end
1.22 +
1.23 +
1.24 +#define $target(RCVR,METHOD) [MYTarget targetWithReceiver: (RCVR) action: @selector(METHOD)]