Re: Is it possible for several NSURLConnection instances to share one delegate?
Re: Is it possible for several NSURLConnection instances to share one delegate?
- Subject: Re: Is it possible for several NSURLConnection instances to share one delegate?
- From: "I. Savant" <email@hidden>
- Date: Wed, 25 Jun 2008 10:57:42 -0400
On Wed, Jun 25, 2008 at 10:17 AM, Ling Wang <email@hidden> wrote:
> I can't find a way to identify different NSURLConnection instances in the
> delegate methods, for NSURLConnection does not offer access to the
> NSURLRequest used to initialize it.
Really? The delegate methods I see for NSURLConnection all start
with - (void)connection:(NSURLConnection *)connection .....
Seems like the connection passes a reference to itself as the very
first argument. As to getting the NSURLRequest, why do you need to get
it from the connection? This seems like an overall design problem. See
"Creating a Connection" in this document:
http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html#
--
I.S.
_______________________________________________
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