diff -r 000000000000 -r 8267d5c429c4 BLIP/BLIPDispatcher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BLIP/BLIPDispatcher.h Sat May 24 13:26:02 2008 -0700 @@ -0,0 +1,28 @@ +// +// BLIPDispatcher.h +// MYNetwork +// +// Created by Jens Alfke on 5/15/08. +// Copyright 2008 Jens Alfke. All rights reserved. +// + +#import +@class MYTarget, BLIPMessage; + + +@interface BLIPDispatcher : NSObject +{ + NSMutableArray *_predicates, *_targets; + BLIPDispatcher *_parent; +} + +@property (retain) BLIPDispatcher *parent; + +- (void) addTarget: (MYTarget*)target forPredicate: (NSPredicate*)predicate; +- (void) removeTarget: (MYTarget*)target; + +- (void) addTarget: (MYTarget*)target forValueOfProperty: (NSString*)value forKey: (NSString*)key; + +- (BOOL) dispatchMessage: (BLIPMessage*)message; + +@end