CFDictionaryReplaceValue(_:_:_:)
Replaces a value corresponding to a given key.
Declaration
func CFDictionaryReplaceValue(_ theDict: CFMutableDictionary!, _ key: UnsafeRawPointer!, _ value: UnsafeRawPointer!)Parameters
- theDict:
The dictionary to modify.
- key:
The key of the value to replace in
theDict. If a key which matcheskeyis present in the dictionary, the value is changed to thevalue, otherwise this function does nothing (“replace if present”). - value:
The new value for
key. Thevalueobject is retained bytheDictusing the retain callback provided whentheDictwas created, and the old value is released.valuemust be of the type expected by the retain and release callbacks.