Source

MYUtilities / Target.h

Full commit
Jens Alfke d84d25d 







Jens Alfke e597686 
Jens Alfke d84d25d 

Jens Alfke 59addce 



Jens Alfke d84d25d 
Jens Alfke 59addce 
Jens Alfke d84d25d 
Jens Alfke 59addce 
Jens Alfke d84d25d 
Jens Alfke 59addce 




//
//  Target.h
//  MYUtilities
//
//  Created by Jens Alfke on 2/11/08.
//  Copyright 2008 Jens Alfke. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface MYTarget : NSObject
{
    id _invocations;    // May be an NSInvocation, or an NSMutableArray of them
}

+ (MYTarget*) targetWithReceiver: (id)receiver action: (SEL)action;

- (void) addTarget: (MYTarget*)target;

- (id) invokeWithSender: (id)sender;

@end


#define $target(RCVR,METHOD)    [MYTarget targetWithReceiver: (RCVR) action: @selector(METHOD)]