31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
/// \cond internal
OFDataArray *delegates;
/// \endcond
}
/**
* Adds a delegate to the set of managed delegates
*
* \param delegate The delegate to add
*/
- (void)addDelegate: (id)delegate;
/**
* Removes a delegate from the set of managed delegates
*
* \param delegate The delegate to remove
*/
- (void)removeDelegate: (id)delegate;
/**
* Broadcasts a selector with one object to all managed delegates
*
* \param selector The selector to broadcast
* \param object The object to broadcast
*/
- (BOOL)broadcastSelector: (SEL)selector
withObject: (id)object;
/**
* Broadcasts a selector with two objects to all managed delegates
*
* \param selector The selector to broadcast
* \param object1 The first object to broadcast
* \param object2 The second object to broadcast
*/
- (BOOL)broadcastSelector: (SEL)selector
withObject: (id)object1
|
|
|
|
|
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
/// \cond internal
OFDataArray *delegates;
/// \endcond
}
/**
* \brief Adds a delegate which should receive the broadcasts.
*
* \param delegate The delegate to add
*/
- (void)addDelegate: (id)delegate;
/**
* \brief Removes a delegate so it does not receive the broadcasts anymore.
*
* \param delegate The delegate to remove
*/
- (void)removeDelegate: (id)delegate;
/**
* \brief Broadcasts a selector with an object to all registered delegates.
*
* \param selector The selector to broadcast
* \param object The object to broadcast
*/
- (BOOL)broadcastSelector: (SEL)selector
withObject: (id)object;
/**
* \brief Broadcasts a selector with two objects to all registered delegates.
*
* \param selector The selector to broadcast
* \param object1 The first object to broadcast
* \param object2 The second object to broadcast
*/
- (BOOL)broadcastSelector: (SEL)selector
withObject: (id)object1
|