• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
plist help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

plist help?


  • Subject: plist help?
  • From: Daniel Todd Currie <email@hidden>
  • Date: Sat, 20 Sep 2003 03:04:58 -0700

I've got ten or so dictionaries that I'd like to store in a single plist file (if possible). I envision the resulting plist file looking something like this:

<plist version="1.0">
<key>dictOne</key>
<dict>
<key>stringOneOne</key>
<string>stringOneOneData</string>
... // for size of dict = 5
<key>stringOneFive</key>
<string>stringOneFiveData</string>
</dict>
... // for number of dicts = 10
<key>dictTen</key>
<dict>
<key>stringTenOne</key>
<string>stringTenOneData</string>
... // for size of dict = 4
<key>stringTenFour</key>
<string>stringTenFourData</string>
</dict>
</plist>

However, given the methods in NSPropertyListSerialization, this sort of plist would be very messy to write and read (if it can be done at all). The only solution I can see is to have 10 separate plist files, but I'd like to keep all this data in a single preferences file. Any thoughts?

Thanks in advance.

// Daniel Currie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: plist help?
      • From: Ali Ozer <email@hidden>
  • Prev by Date: Re: .doc to .rtf ?
  • Next by Date: NSBorderlessWindowMask with key events
  • Previous by thread: <Kein Betreff>
  • Next by thread: Re: plist help?
  • Index(es):
    • Date
    • Thread