• 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: NSURLDownload and userInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLDownload and userInfo


  • Subject: Re: NSURLDownload and userInfo
  • From: "Clint Shryock" <email@hidden>
  • Date: Mon, 10 Mar 2008 08:22:33 -0500

Do you have two instances of NSURLDownload?
if they are declared in the .h file you could test for equality in the
downloadDidFinish:
delegate method.

- (void)downloadDidBegin:(NSURLDownload *)download {
  if(download == myNSURLDownloadA) {
    //  something for a
  }
  if(download == myNSURLDownloadB) {
    //  something for b
  }
}

2008/3/9 Trygve Inda <email@hidden>:

> I am using NSURLDownload and NSURLRequest to download 2 different types of
> data (A & B)... Both of which are related to the same class so they share
> delegate methods.
>
> In my delegate, when there is an error or successful completion I need to
> call one "process method" for A and a different one for B. To enable this,
> is there a way to attach some sort of userInfo type (even an int) to
> either
> the NSURLDownload or NSURLRequest... Or should I subclass one of them to
> add
> a variable?
>
> Thanks,
>
> Trygve
>
>
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: NSURLDownload and userInfo
      • From: Ben Lachman <email@hidden>
References: 
 >NSURLDownload and userInfo (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: [iPhone] UIImage drawInRect not scaling image
  • Next by Date: Re: [newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar
  • Previous by thread: NSURLDownload and userInfo
  • Next by thread: Re: NSURLDownload and userInfo
  • Index(es):
    • Date
    • Thread