Skip navigation.
 
mlRe: base64 NSData to NSString
FROM : Marco Cassinerio
DATE : Sat Mar 22 20:40:57 2008

>They aren't "base64 NSData objects", they are NSData objects which
>happen to be stored using base64. This is an implementation detail and
>you shouldn't need to care about it.


>The .plist extension implies that these are property lists. You can
>read them with NSPropertyListSerialization. This will take care of
>decoding the NSData objects however they are represented, and will
>also do nice things like not fail utterly when Apple decides that this
>plist should be stored using the binary format instead of the XML
>format.


>Mike

I'm a bit confused. Property list documentation says "Data bytes are 
base-64 encoded between the <data> and </data> tags."
Using NSPropertyListSerialization means that the .plist file is a 
binary representation and not an XML representation, is it true?
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