How do I rewrite a plist if its data types are immutable?

Posted by dugla on Stack Overflow See other posts from Stack Overflow or by dugla
Published on 2010-04-21T22:22:24Z Indexed on 2010/04/21 22:23 UTC
Read the original article Hit count: 327

Filed under:
|
|

I am getting comfortable with using plists for initializing my app. I now want to save app state back to the plist used to initialize the app and I find myself stuck. At application startup I ingest the plist into an NSDictionary which is immutable. I now want to update the NSDictionary by replacing old values with new values for existing keys and write to the plist via [NSDictionary writeToFile:atomically]. How do I get around the immutability of NSDictionary?

Thanks, Doug

© Stack Overflow or respective owner

Related posts about nsdictionary

Related posts about plist