• 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
NSDictionary descriptionWithLocale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionary descriptionWithLocale


  • Subject: NSDictionary descriptionWithLocale
  • From: Ivan C Myrvold <email@hidden>
  • Date: Wed, 14 Mar 2007 12:25:54 +0100

I want to have a xml propertylist representation of an NSDictionary stored in NSString.

One way to do it is to do a [mydictionary writeToFile:atomically], and then read from that file into an NSString.
But that is not a good solution. It should be possible to do this directly.


The NSDictionary method description is not in a true xml propertylist format.

It looks like the NSDictionary method descriptionWithLocale:indent: is the answer to what I want, but I can't find any documentation of what the locale dictionary should contain to get an xml property list representation:

Parameters
locale
A dictionary that specifies options used for formatting each of the receiver’s keys and values; pass nil if you don’t want them formatted.




Ivan_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDictionary descriptionWithLocale
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Fwd: Have problem with NSAutoReleasePool
  • Next by Date: Re: NSDictionary descriptionWithLocale
  • Previous by thread: Fwd: Have problem with NSAutoReleasePool
  • Next by thread: Re: NSDictionary descriptionWithLocale
  • Index(es):
    • Date
    • Thread