jens@0: // jens@0: // BLIPDispatcher.h jens@0: // MYNetwork jens@0: // jens@0: // Created by Jens Alfke on 5/15/08. jens@0: // Copyright 2008 Jens Alfke. All rights reserved. jens@0: // jens@0: jens@0: #import jens@0: @class MYTarget, BLIPMessage; jens@0: jens@0: jens@0: @interface BLIPDispatcher : NSObject jens@0: { jens@0: NSMutableArray *_predicates, *_targets; jens@0: BLIPDispatcher *_parent; jens@0: } jens@0: jens@0: @property (retain) BLIPDispatcher *parent; jens@0: jens@0: - (void) addTarget: (MYTarget*)target forPredicate: (NSPredicate*)predicate; jens@0: - (void) removeTarget: (MYTarget*)target; jens@0: jens@0: - (void) addTarget: (MYTarget*)target forValueOfProperty: (NSString*)value forKey: (NSString*)key; jens@0: jens@0: - (BOOL) dispatchMessage: (BLIPMessage*)message; jens@0: jens@0: @end