objective c - Detect any changes in NSMutableDictionary/NSMutableArray -
i building app exposes dictionary webview javascriptcore. it's options content of page. dictionary multiple (and differing) keys , values can dictionaries or array (in addition strings, etc).
with non-dictionary values it's straight forward, overriding setter, however, isn't appropriate here. when value changes need save it, having trouble nested values.
i have looked in kvo, however, allows single key. this question seems promising, using javascriptcore 'convert' dictionary javascript object may need keep instance of nsdictionary. changing child dictionaries , arrays required far ideal.
i try looping on each key , observing each on , child keys, won't work new keys.
if there method in (horrendously documented) javascriptcore might excellent too.
Comments
Post a Comment