• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to download images for a contact in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: How to download images for a contact in Cocoa?
  • From: Clint Shryock <email@hidden>
  • Date: Thu, 2 Apr 2009 08:06:53 -0500

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 of it for you.

+Clint

On Thu, Apr 2, 2009 at 12:20 AM, albert jordan Mobility <email@hidden
> wrote:

>
> 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
> URLWithString:mapURL]];
> BOOL success = [currentPerson setImageData: imageData];
>
>
> but I don't think this is right.  It seems I need to initiate a download
> process, and need to do something with "beginLoadingImageDataForClient: ".
>  But I can't find any good documentation on the method.   can some please
> point me in the right direction?
>
> Thanks
>
> Albert
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to download images for a contact in Cocoa? (From: albert jordan Mobility <email@hidden>)

  • Prev by Date: RE: How to synchronize two managedObjectContexts...
  • Next by Date: Re: disable row highlighting NSTableView
  • Previous by thread: How to download images for a contact in Cocoa?
  • Next by thread: UITableView "port" to Mac?
  • Index(es):
    • Date
    • Thread