My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import <Foundation/Foundation.h>

struct MulticastDelegateListNode {
id delegate;
struct MulticastDelegateListNode * prev;
struct MulticastDelegateListNode * next;
NSUInteger retainCount;
};
typedef struct MulticastDelegateListNode MulticastDelegateListNode;


@interface MulticastDelegate : NSObject
{
NSUInteger currentInvocationIndex;
MulticastDelegateListNode *delegateList;
}

- (void)addDelegate:(id)delegate;
- (void)removeDelegate:(id)delegate;

- (void)removeAllDelegates;

- (NSUInteger)count;

@end
Show details Hide details

Change log

r164 by deusty on Oct 27, 2009   Diff
Rewriting the MulticastDelegate because
Xcode won't stop complaining about it's
different retain/release semantics.  It
now uses structs and pointers instead of
ObjC classes.
Go to: 
Project members, sign in to write a code review

Older revisions

r158 by deusty on Sep 09, 2009   Diff
Adding a bunch of comments to
MulticastDelegate. Also adding a note
that should help when XCode's analyze
stuff says there's a potential problem
in the class.
r55 by deusty on Nov 10, 2008   Diff
Improving functionality of multicast
delegate.  Now works more like the
NSNotificationCenter.  Removing a
delegate within a delegate callback no
longer causes problems.  Adding a
...
All revisions of this file

File info

Size: 523 bytes, 25 lines
Hosted by Google Code