Given:
An existing NSMutableDictionary named oldDictionary.
Goal:
Copy oldDictionary to a another dictionary named newDictionary and if
newDictionary has been modified – e.g., the values of some keys are changed – then oldDictionary should update to reflect the change as well.
Question:
What is the best way to do that?
Please advise me on this issue.
Not sure that’s the best way, i believe you can assign the observers for every key-value of the old one with
processing every change at
Check the KVO reference for details. The reason of why that’s not implemented as a standard functionality must be because that’s an overkill.