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.)
jens@0
     1
//
jens@0
     2
//  BLIPDispatcher.h
jens@0
     3
//  MYNetwork
jens@0
     4
//
jens@0
     5
//  Created by Jens Alfke on 5/15/08.
jens@0
     6
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@0
     7
//
jens@0
     8
jens@0
     9
#import <Foundation/Foundation.h>
jens@0
    10
@class MYTarget, BLIPMessage;
jens@0
    11
jens@0
    12
jens@0
    13
@interface BLIPDispatcher : NSObject 
jens@0
    14
{
jens@0
    15
    NSMutableArray *_predicates, *_targets;
jens@0
    16
    BLIPDispatcher *_parent;
jens@0
    17
}
jens@0
    18
jens@0
    19
@property (retain) BLIPDispatcher *parent;
jens@0
    20
jens@0
    21
- (void) addTarget: (MYTarget*)target forPredicate: (NSPredicate*)predicate;
jens@0
    22
- (void) removeTarget: (MYTarget*)target;
jens@0
    23
jens@0
    24
- (void) addTarget: (MYTarget*)target forValueOfProperty: (NSString*)value forKey: (NSString*)key;
jens@0
    25
jens@0
    26
- (BOOL) dispatchMessage: (BLIPMessage*)message;
jens@0
    27
jens@0
    28
@end