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 3970040
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:02:19+00:00 2026-05-20T04:02:19+00:00

I feel my question is really n00b; apologies if I don’t word it clearly

  • 0

I feel my question is really n00b; apologies if I don’t word it clearly :/

In my project I’m using a 3rd party framework that fetches some data for me using asynchronous NSURLRequests (RESTful API).
When the data is received and ready, delegate function didReceiveResponse is called. On error case didFailWithError is called.

The problem is: framework cannot queue requests, so if I call request methods sequentially I only receive the response for the last request issued.

Now the issue is that I can’t change framework’s code. Given this is there any way of having a workaround for this problem? Something like: for a set of requests the n+1 request is not issued until request n is finished (either didReceiveResponse or didFailWithError was called); additionally, when the last request in a set is finished, I get a sort of notification. Ideally, the solution should by supported work for both iOS3 and iOS4.

  • 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-05-20T04:02:19+00:00Added an answer on May 20, 2026 at 4:02 am

    It seems like your only option is to control the method by which you start the requests. To that end, I would abstract the idea of a desired-request into an object or factory of its own: call it Command, or SingleRequestFactory, or whatever. Hold these objects in an array, and when you receive a didReceiveResponse or didFailWithError, dequeue the next Command and use it to construct the next request, which you pass along to your third-party framework. If you get a didReceiveResponse or didFailWithError and the queue is empty, post your notification.

    It’d probably be best to create an object that does all of this logic on its own, so that your viewcontrollers/whatever is throwing out these requests can just tell the object to queue a Command without holding the queue itself.

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

Sidebar

Related Questions

Well! I feel really stupid for this question, and I wholly don't mind if
First let me say that I really feel directionless on this question. I am
(Really strugging to title this question, so if anyone has suggestions feel free.) Say
I apologize for the stupid question, but I feel like I've really struck a
I feel silly asking this question... Sometimes I have a domain that I want
I feel like the answer to this question is really simple, but I really
I feel like this is a silly question but I always find that modifying
Note: I'm not completely sure if this question really belongs to StackOverflow so feel
(This question is not really restricted to the language so please feel free to
I feel like there must be something really simple that I'm not seeing here.

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.