author | snej@snej.local |
Sat Apr 04 20:53:53 2009 -0700 (2009-04-04) | |
changeset 22 | a9da6c5d3f7c |
parent 7 | 59addced5e2a |
permissions | -rw-r--r-- |
1 //
2 // Target.h
3 // MYUtilities
4 //
5 // Created by Jens Alfke on 2/11/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
7 //
9 #import <Foundation/Foundation.h>
12 @interface MYTarget : NSObject
13 {
14 id _invocations; // May be an NSInvocation, or an NSMutableArray of them
15 }
17 + (MYTarget*) targetWithReceiver: (id)receiver action: (SEL)action;
19 - (void) addTarget: (MYTarget*)target;
21 - (id) invokeWithSender: (id)sender;
23 @end
26 #define $target(RCVR,METHOD) [MYTarget targetWithReceiver: (RCVR) action: @selector(METHOD)]