Re: Creating an NSDictionary out of NSData?
Re: Creating an NSDictionary out of NSData?
- Subject: Re: Creating an NSDictionary out of NSData?
- From: Jérôme Laurens <email@hidden>
- Date: Thu, 17 Oct 2002 17:48:00 +0200
Le jeudi, 17 oct 2002, ` 17:36 Europe/Zurich, Gerben Wierda a icrit :
>
This probably has a simple solution, but I have not been able to find
>
it in the docs. For strings I can do:
>
>
NSData *urlData = [url resourceDataUsingCache:[ii2Prefs useCache]];
>
NSString *contents = [[[NSString alloc] initWithData:urlData
>
encoding:NSUTF8StringEncoding] autorelease];
>
>
The reason I do it instead ofusing withContentsOfURL is that I want to
>
control the use of any cache. But how do I do the same with an
>
NSDictionary? How do I change:
>
>
NSDictionary *tmpDict = [NSDictionary
>
dictionaryWithContentsOfURL: dictURL];
>
>
into something where I can control the use of a cache?
>
>
Thanks,
you might take a look at NSPropertyListSerialization
_______________________________________________
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.