• 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: Is it possible for several NSURLConnection instances to share one delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 11:20:34 -0400

On Wed, Jun 25, 2008 at 11:02 AM, an0 <email@hidden> wrote:
> So it forces me to keep all the fired NSURLConnections, right?
> Otherwise, I can't tell which is which in my delegate methods.

  I believe so, yes. Presumably you'd have a controller that knows how
to, say, -getResourceAtURL: ... this method would create a request,
then create a connection with that request. It would conceivably add
that connection (if it was successfully created) to some collection
that identifies it in whatever way is useful. Perhaps an array of
dictionaries (whose keys are "url" and "connection", with methods to
find "connection for url" or vice-versa)? It depends on what you're
trying to do.

  Depending on the delegates that are 'fired', you can update the
appropriate progress UI, handle the resource and remove the connection
from your collection, etc.

--
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

  • Follow-Ups:
    • Re: Is it possible for several NSURLConnection instances to share one delegate?
      • From: Ken Thomases <email@hidden>
    • Re: Is it possible for several NSURLConnection instances to share one delegate?
      • From: an0 <email@hidden>
    • Re: Is it possible for several NSURLConnection instances to share one delegate?
      • From: "I. Savant" <email@hidden>
References: 
 >Is it possible for several NSURLConnection instances to share one delegate? (From: Ling Wang <email@hidden>)
 >Re: Is it possible for several NSURLConnection instances to share one delegate? (From: "I. Savant" <email@hidden>)
 >Re: Is it possible for several NSURLConnection instances to share one delegate? (From: an0 <email@hidden>)

  • Prev by Date: Re: how to save keyboard shortcuts?
  • Next by Date: Re: Is it possible for several NSURLConnection instances to share one delegate?
  • Previous by thread: Re: Is it possible for several NSURLConnection instances to share one delegate?
  • Next by thread: Re: Is it possible for several NSURLConnection instances to share one delegate?
  • Index(es):
    • Date
    • Thread