Re: How to download images for a contact in Cocoa?

2009-04-02 Thread Clint Shryock
Should you be using stringByAddingPercentEscapesUsingEncoding: instead of stringByReplacingPercentEscapesUsingEncoding: ? unless I'm reading that wrong it seems like you're taking a encoded URL and decoding it. I don't believe you need to initiate a download process, that method should take care o

How to download images for a contact in Cocoa?

2009-04-01 Thread albert jordan Mobility
I'm trying to implement code that downloads contact image from the net. I thought the following would do... NSString* mapURL = [currentStringValue stringByReplacingPercentEscapesUsingEncoding: NSASCIIStringEncoding]; NSData* imageData = [[NSData alloc]initWithContentsOfURL:[NSURL URLWi