Re: Replace object at key path in NS[Mutable]Dictionary


 



On Jan 2, 2018, at 9:55 AM, Jonathan Taylor <jonathan.taylor@...> wrote:

I can load the plist file as an NSMutableDictionary, but it seems that only makes the top level dictionary mutable. The dictionaries-within-dictionaries are still immutable. 

Have you tried using NSPropertyListSerialization with the NSPropertyListMutableContainers option? That should make all the nested dictionaries/arrays mutable.

—Jens

Join cocoa@apple-dev.groups.io to automatically receive all group messages.