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 PROTECTED]>: > 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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/cts3e1%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]