Class
MulticastDelegate
public class MulticastDelegate<T>: NSObject, Loggable
A class that allows to have multiple delegates instead of one.
Uses NSHashTable
internally to maintain a set of weak delegates.
Note:
NSHashTable
may not immediately deinit the un-referenced object, due to Apple's implementation, therefore.count
is unreliable.
Relationships
Conforms To
NSObject
Methods
remove(delegate:)
public func remove(delegate: T)
Remove a single delegate.
In most cases this is not required to be called explicitly since all delegates are weak.