Re: NSURLDownload and userInfo
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