Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to create a custom property list type, such that Property List Editor would recognize it the way it does an Info.plist property list?

I noticed the DTD in Apple's Info.plist format, but I don't know much about XML schemas. Is there more to it?

share|improve this question
up vote 3 down vote accepted

The list of formats for property lists is not extensible.

The list is defined in the NSPropertyListFormat type/enumeration found in the NSPropertyList.h from the Foundation framework (equivalently, CFPropertyListFormat found in CFPropertyList.h from Core Foundation).

If you are looking for a plain text format that is easier to edit (easier than the XML format), then you may be interested in the older NeXTSTEP/OpenStep property list format. Unfortunately, it can not represent all the types that are supported by the new XML and binary formats (it lacks direct representations for booleans, numbers, and dates). Because of this forward incompatibility, the standard library and tools (NSPropertyListSerialization, defaults, plutil, PlistBuddy, etc.) will read this older format, but they will not write it (although the output of default read looks suspiciously like the NeXTSTEP format).

This format is often found in the .strings files that are used to localize applications (probably because this use case is limited to string keys and values in a dictionary (all supported types) and because it is easy to edit in virtually any text editor).

share|improve this answer
TextMate also uses this format for its Info.plist. – Daniel Beck Nov 8 '10 at 9:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .