| /trunk/MulticastDelegate.h r0 | /trunk/MulticastDelegate.h r55 | ||
| 1 | #import <Foundation/Foundation.h> | ||
|---|---|---|---|
| 2 | @class MulticastDelegateListNode; | ||
| 3 | |||
| 4 | |||
| 5 | @interface MulticastDelegate : NSObject | ||
| 6 | { | ||
| 7 | NSUInteger currentInvocationIndex; | ||
| 8 | MulticastDelegateListNode *delegateList; | ||
| 9 | } | ||
| 10 | |||
| 11 | - (void)addDelegate:(id)delegate; | ||
| 12 | - (void)removeDelegate:(id)delegate; | ||
| 13 | |||
| 14 | - (void)removeAllDelegates; | ||
| 15 | |||
| 16 | - (NSUInteger)count; | ||
| 17 | |||
| 18 | @end | ||
| 19 | |||
| 20 | @interface MulticastDelegateListNode : NSObject | ||
| 21 | { | ||
| 22 | id delegate; | ||
| 23 | |||
| 24 | MulticastDelegateListNode *prev; | ||
| 25 | MulticastDelegateListNode *next; | ||
| 26 | } | ||
| 27 | |||
| 28 | - (id)initWithDelegate:(id)delegate; | ||
| 29 | |||
| 30 | - (id)delegate; | ||
| 31 | |||
| 32 | - (MulticastDelegateListNode *)prev; | ||
| 33 | - (void)setPrev:(MulticastDelegateListNode *)prev; | ||
| 34 | |||
| 35 | - (MulticastDelegateListNode *)next; | ||
| 36 | - (void)setNext:(MulticastDelegateListNode *)next; | ||
| 37 | |||
| 38 | @end | ||