NSMutableSet
really meets the requirements of KVO / KVC. However, in order to receive notifications with how you configured this, you need to implement KVC access methods for dialing. Information can be found here . Essentially, you must implement methods called:
-countOfConnections -enumeratorOfConnections -memberOfConnections: -addConnectionsObject: -removeConnectionsObject: -intersectConnections:
You must use these methods to access and modify your set in order to receive KVO notifications.
Finally, in your -observeValueForKeyPath
method -observeValueForKeyPath
you can use the value of the kind
key in the change
dictionary to determine what type of mutation has occurred (add, delete, etc.). Values ββcan be found here and are listed in the NSKeyValueChange section. Hope this helps.
source share