Re: base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
On Mar 22, 2008, at 9:24 PM, Jens Alfke wrote: On 22 Mar '08, at 1:19 PM, Marco Cassinerio wrote: 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\30

Re: base64 NSData to NSString

2008-03-22 Thread Jens Alfke
On 22 Mar '08, at 1:19 PM, Marco Cassinerio wrote: 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>Devel

Re: base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
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

Re: base64 NSData to NSString

2008-03-22 Thread Jens Alfke
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 th

Re: base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
>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

Re: base64 NSData to NSString

2008-03-22 Thread Michael Ash
On Sat, Mar 22, 2008 at 1:22 PM, Marco Cassinerio <[EMAIL PROTECTED]> wrote: > Hi, > > i'm trying to read the com.apple.recentitems.plist file and i found > that "Alias" and "Icon" key are base64 NSData object. > NSData and NSString don't provide methods to manage base64 data. They aren't "base

Re: base64 NSData to NSString

2008-03-22 Thread Jeff LaMarche
I really wouldn't do it this way. There are many ways of doing this within your app without spawning a task. LibCrypto offers functions for encoding and decoding Base64 as does LibSSL (which is going to be the same code as you're currently trying to use, but without spawning a task). Ther

Re: base64 NSData to NSString

2008-03-22 Thread Paolo Manna
Marco, > I've searched with Google and i found some "pathces" for NSString and NSData > but they > don' t seem to work. I've used the one contained in Eric Czarny's XML-RPC library, and it seems to work: http://sourceforge.net/projects/xml-rpc/ That is based on: http://ranchero.com/cocoa/xmlrpc/

base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
Hi, i'm trying to read the com.apple.recentitems.plist file and i found that "Alias" and "Icon" key are base64 NSData object. NSData and NSString don't provide methods to manage base64 data. I've searched with Google and i found some "pathces" for NSString and NSData but they don' t seem to