Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7874911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:53:36+00:00 2026-06-03T02:53:36+00:00

I have a nsurlconnection that i set the delegate as self. I have the

  • 0

I have a nsurlconnection that i set the delegate as self. I have the four methods didrecieve, did finish, did fail, and the other one. My question is how to set it up so that i include what needs to be done after completion. This is needed because I have different nsurlconnection requests throughout the class, and have unique responses. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:53:37+00:00Added an answer on June 3, 2026 at 2:53 am

    Your question is not clear. First of all, it doesn’t sound like you’re using NSURLConnection synchronously, so your question title seems wrong. Then, if you want to do something when the connection completes, put it in the did-finish and did-fail methods.

    If you want to distinguish among multiple connections, use the parameter for the connection that’s passed in to the delegate methods. One thing you can do is have a dictionary whose keys are [NSValue valueWithNonretainedObject:theConnection]. The value can be anything of use, including another dictionary.

    Or, you can use a separate object to manage and be the delegate for each connection. If there’s enough specific to each connection that you have to keep track of data about it, then maybe it warrants a separate object to manage things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An iPhone question for you guys! I have an NSURLConnection that downloads XML from
Possible Duplicate: Managing two NSURLConnection NSURLConnection delegate I have two different methods who calls
I have a simple form interface set up that send username and password information
I am developing one small app in which i have multiple NSURLConnection.I have created
I have the following code that allows me to load a set URL each
Like plenty of other people before me, I have some web content that I
I have a connection class that uses NSURLConnection to connect to the server. While
I have written an iOS app that calls NSUrlConnection multiple times to download image
I have a NSURLConnection that is working fine when I allow the load to
This is a simplification, but I have an app that has the following methods:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.