Search code examples
iphoneiosios4nsdictionarynsmutabledictionary

How do I use the writeToFile method on an NSMutableDictionary?


I would like to use a method (writeToFile) only available for NSDictionary to a NSMutableDictionary object. So, how do I convert this NSMutableDictionary object to NSDictionary?


Solution

  • NSMutableDictionary inherits from NSDictionary. So, writeToFile should be available to both classes.