Re: NSDictionary writeToFile without going to disk?
Re: NSDictionary writeToFile without going to disk?
- Subject: Re: NSDictionary writeToFile without going to disk?
- From: Andy Lee <email@hidden>
- Date: Sun, 19 Mar 2006 13:54:40 -0500
On Mar 19, 2006, at 1:41 PM, Tito Ciuro wrote:
Hum...: selector not recognized
Assuming it works, the problem is to recreate the dictionary with
that string...
Poking around the docs, I see -propertyList is actually a method of
NSString, not NSDictionary. You can send -description to an
NSDictionary to get a string representation in property list format,
and send -propertyList to the string to get back the original
property list object, which in this case is a dictionary.
You could also use -[NSDictionary descriptionInStringsFileFormat] and
-[NSString propertyListFromStringsFileFormat].
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden