What is the easiest way to write content of a dictionary into a file. Sample code will be really helpful.
+2
A:
Write to a plist file. That would be the easiest (to read back and write to)
Use the NSDictionary method writeToFile:atomically: to write to a plist and initWithContentsOfFile: to populate the dictionary with the plist's contents.
lostInTransit
2010-08-12 06:38:53
Thank you so much
Abhinav
2010-08-16 05:22:48
A:
Have a look at the NSCoding protocol: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Archiving/Archiving.html#//apple_ref/doc/uid/10000047i
tob
2010-08-12 06:39:56