how to write NSMutableDictionary into Plist

nik picture nik · Oct 21, 2010 · Viewed 9.2k times · Source

can any one help me with this how to write a NSMutableDictionary into a plist....

thanks in advance..

Answer

John Kofod picture John Kofod · Oct 21, 2010

Make sure the pList file you are writing to is located in a legal place to edit it, for example Documents in the apps sandbox. Then find the path to that location (if there is an existing pList file, it will overwrite), and use:

[myDictionary writeToFile:path atomically:YES];

Write how far you are in the process, and maybe some code / error-message...