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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:47:45+00:00 2026-06-17T13:47:45+00:00

First, I think iPad has only single NIC (or what ever hardware) for handling

  • 0

First, I think iPad has only single NIC (or what ever hardware) for handling connection. So requests are queued and serviced sequentially and there can’t be 2 connections running at the same time. Is this guess true?

I have UITabBar controller, where each tab’s view controller download & parses a different JSON feed URL.
I have created a singleton class that downloads feeds from single URL, then parses it and calls a delegate function of one of the view controllers when work is done.
I have decided to use asynchronous connection in order not to hang the main thread.

URLConnection4Target * _conn = [[URLConnection4Target alloc] initWithRequest:request delegate:self startImmediately:NO];

So tabs are all accessible from the same window (not navigated one after another), and they use different URLs for different feeds.

My problem is how to design the connection in the singleton class to serve that multiple view controllers sequentially (or concurrently if possible).

I tried to use NSInvocationOperation because i was not sure what will happen if the user clicked on a one tab and accesses the NSURLConnection object while it’s already accessible by different view controller.

  • 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-17T13:47:47+00:00Added an answer on June 17, 2026 at 1:47 pm

    First off, the number of network connections is not tied to the number of NIC (Network Interface Cards) or ethernet ports or whatever. Secondly you mention you are using a singleton pattern for your URLConnection? Without seeing your singleton, I’m assuming this is the reason you only seem to be able to open a single connection at a time. You can create as many URLConnections as you need for your tabs, don’t restrict them to a singleton. Think URLConnection/request, N x requests/tab and you should be fine.

    So when a tab is visible/active, create the URLRequest for the content, let it work asynchronously in the bg but make sure any UI updates are posted back to the main thread. Finally when the request completes, deallocate and forget about it.

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

Sidebar

Related Questions

$('#servertable td:eq(' + server + ')') this finds only 1 (first I think) match,
First off I would like to say that I think that my question may
I think I have a big problem. I have a two projects solution. First
Yesterday I used jQuery UI for the first time and I think I'm going
Okay at first I thought this would be pretty straightforward. But I can't think
I'm going a little mad I think. This is the VERY first thing I
String[] a = c.toArray(new String[0]); First: Do I need type cast here? (I think
Hi i have created app for ipad , it has an video files in
The music app on the iPad has quite a lot of interesting custom UI
I'm about to submit my first iPad app, and I have 2 questions regarding

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.