Target.h
author Jens Alfke <jens@mooseyard.com>
Thu May 14 20:44:32 2009 -0700 (2009-05-14)
changeset 31 2068331949ee
parent 7 59addced5e2a
permissions -rw-r--r--
* Optimized Olivier's MYDirectoryWatcher fix (by caching the watcher's standardized path)
* Added -[NSData my_UTF8ToString] to CollectionUtils.
     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 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 
    12 @interface MYTarget : NSObject
    13 {
    14     id _invocations;    // May be an NSInvocation, or an NSMutableArray of them
    15 }
    16 
    17 + (MYTarget*) targetWithReceiver: (id)receiver action: (SEL)action;
    18 
    19 - (void) addTarget: (MYTarget*)target;
    20 
    21 - (id) invokeWithSender: (id)sender;
    22 
    23 @end
    24 
    25 
    26 #define $target(RCVR,METHOD)    [MYTarget targetWithReceiver: (RCVR) action: @selector(METHOD)]