• 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
Re: NSPropertyListSerialization documentation error ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPropertyListSerialization documentation error ?


  • Subject: Re: NSPropertyListSerialization documentation error ?
  • From: Gavin Eadie <email@hidden>
  • Date: Wed, 6 Feb 2008 00:27:40 -0500

Bug ID# 5726980

On Feb 6, 2008, at 12:20 AM, Chuck Hill wrote:

About the only description I can find of the 'ascii' format of Apple's plist is:

  http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Articles/OldStylePListsConcept.html

Therein is an example of dictionary text that should parse to a NSDictionary, namely:

  {
      AnimalSmells = { pig = piggish; lamb = lambish; worm = wormy; };
      AnimalSounds = { pig = oink; lamb = baa; worm = baa;
                      Lisa = "Why is the worm talking like a lamb?"; }
      AnimalColors = { pig = pink; lamb = black; worm = pink; }
  }

However, NSPropertyListSerialization.dictionaryForString fails to parse it.
If semi-colons are appended to the 4th and 5th lines, all is well, ie:

  {
     AnimalSmells = { pig = piggish; lamb = lambish; worm = wormy; };
     AnimalSounds = { pig = oink; lamb = baa; worm = baa;
                     Lisa = "Why is the worm talking like a lamb?"; };   <===
     AnimalColors = { pig = pink; lamb = black; worm = pink; };   <===
  }

I believe the documentation is in error, and that the WebObjects parser is correct ... Gavin


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSPropertyListSerialization documentation error ? (From: Gavin Eadie <email@hidden>)
 >Re: NSPropertyListSerialization documentation error ? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: NSPropertyListSerialization documentation error ?
  • Next by Date: Re: Illegal Lock usage
  • Previous by thread: Re: NSPropertyListSerialization documentation error ?
  • Next by thread: Re: NSPropertyListSerialization documentation error ?
  • Index(es):
    • Date
    • Thread