BLIP/BLIPDispatcher.h
author Jens Alfke <jens@mooseyard.com>
Sat May 24 13:26:02 2008 -0700 (2008-05-24)
changeset 1 8267d5c429c4
child 2 9fdd8dba529c
permissions -rw-r--r--
Added #imports of utility headers, so source files will compile without requiring a custom prefix (MYUtilities.pch.)
     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