iOS Question NSDictionary to writeable Map

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

My program needs to extent NSDictionary and to receive final result as Map.

I tried to use convertToMap function, described in iCore.h. But for NSDictionary result was read-only Map.
I make a mutable copy, but convertToMap returned read-only Map for NSMutableDictionary also.
Any ideas ?

Theoretically it's possible to enumerate all keys and values in read-only Map and to create new Map, but this way looks enough stupid.
 

hatzisn

Well-Known Member
Licensed User
Longtime User
Copy the contents to a new map. It's the only easy way
 
Upvote 0
Top