3

When using NSCoder and NSKeyedArchiver, I understand the data is stored in binary format. Therefore, what is the most appropriate file extension for a storage file? Many tutorials use .plist, but I believe this should be text property lists ~ key / value pairs.

jscs
  • 63,694
  • 13
  • 151
  • 195
Paul Williams
  • 386
  • 7
  • 20
  • 1
    Plist data (including such data contained in a .plist file) does not have to be a dictionary and can be in any of the three plist encoding formats. Anything that decodes plists should be able to handle any of the three formats (as NSPropertyListSerialization is), and any application that reads plists should at least check that it has the right kind of root object. – Peter Hosey Jan 16 '12 at 22:18

1 Answers1

6

You would typically use a custom extension.

omz
  • 53,243
  • 5
  • 129
  • 141