BLIP/BLIPDispatcher.h
author Jens Alfke <jens@mooseyard.com>
Fri May 23 17:37:36 2008 -0700 (2008-05-23)
changeset 0 9d67172bb323
child 2 9fdd8dba529c
permissions -rw-r--r--
First checkin after breaking out of Cloudy
     1 //
     2 //  BLIPDispatcher.h
     3 //  MYNetwork
     4 //
     5 //  Created by Jens Alfke on 5/15/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 @class MYTarget, BLIPMessage;
    11 
    12 
    13 @interface BLIPDispatcher : NSObject 
    14 {
    15     NSMutableArray *_predicates, *_targets;
    16     BLIPDispatcher *_parent;
    17 }
    18 
    19 @property (retain) BLIPDispatcher *parent;
    20 
    21 - (void) addTarget: (MYTarget*)target forPredicate: (NSPredicate*)predicate;
    22 - (void) removeTarget: (MYTarget*)target;
    23 
    24 - (void) addTarget: (MYTarget*)target forValueOfProperty: (NSString*)value forKey: (NSString*)key;
    25 
    26 - (BOOL) dispatchMessage: (BLIPMessage*)message;
    27 
    28 @end