Skip navigation.
 
mlRe: base64 NSData to NSString
FROM : Marco Cassinerio
DATE : Sat Mar 22 21:19:45 2008

On Mar 22, 2008, at 8:46 PM, Jens Alfke wrote:

>
> On 22 Mar '08, at 12:40 PM, Marco Cassinerio wrote:
>

>> Using NSPropertyListSerialization means that the .plist file is a 
>> binary representation and not an XML representation, is it true?

>
> No. You can choose either format when writing a plist, and when 
> reading a plist it automatically detects the type and reads either 
> one.
>
> Provided you use plist APIs to read the property lists, you 
> shouldn't have to care what format they're in. You'll get a 
> collection of objects and can work with them directly.
>
> —Jens


I've done what you said, but nothing changed. I get the same data 
content, like this:

ImgR\362FBIL\346\326\303\331\376\247H+\222!\222C\303\351-+    
\377\376\377\377\377\377\222!\221\302\221\301
   \2161\216a
mfile.icnsMacintosh HD>Developer/Applications/Xcode.app/Contents/
Resources/mfile.icns/\377\377

I've tried to write a parser, but is very hard.

Marco

Related mailsAuthorDate
mlbase64 NSData to NSString Marco Cassinerio Mar 22, 18:22
mlRe: base64 NSData to NSString Paolo Manna Mar 22, 19:12
mlRe: base64 NSData to NSString Jeff LaMarche Mar 22, 19:18
mlRe: base64 NSData to NSString Michael Ash Mar 22, 20:11
mlRe: base64 NSData to NSString Marco Cassinerio Mar 22, 20:40
mlRe: base64 NSData to NSString Jens Alfke Mar 22, 20:46
mlRe: base64 NSData to NSString Marco Cassinerio Mar 22, 21:19
mlRe: base64 NSData to NSString Jens Alfke Mar 22, 21:24
mlRe: base64 NSData to NSString Marco Cassinerio Mar 22, 22:11