Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.