Plist sort by name in Xcode? -
is there way sort plist in xcode name?
<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>alpha</key> <string>this letter alpha</string> <key>beta</key> <string>this letter beta</string>
etc...
i got plist xcode refuses display plist in order....
any ideas?
the problem isn't plist, data structure you're attempting place within it. dictionaries (in context <dict>
) store information in key-value relationship in there no concept of order.
if wish keep objects of type in specific order, should save nsarray object plist instead of nsdictionary. arrays have concept of order store items numeric index representing order of items within array.
Comments
Post a Comment