NSDictionary descriptionWithLocale
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