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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:27:37+00:00 2026-05-24T10:27:37+00:00

I am making an iPad app where you can download files (like PDF, doc,

  • 0

I am making an iPad app where you can download files (like PDF, doc, etc) and view them offline.

I already have the view part and you can download a file to the document directory.
As it is now you need to wait for the download to be finished to move on.
This can be solved by putting it in a thread, but what happens when the user downloads multiple files or even download the same file multiple times?

My idea is to make a download queue, with a view for the progress.

Workflow:

  • The user opens a document and press download, the user gets a message that the download is started and can be viewed in the offline documents view.

  • The user downloads 3 more documents.

  • When the user goes to the offline document view the user sees a table view with 4 filled cells. 2 documents are done loading and 2 other are still downloading because there is a download/status bar shown in the table view cell.

  • The downloaded documents can be viewed or deleted.

  • The downloads in progress can not be watched (yet) but can be cancelled.

I want to make a threaded download class where you can add urls to be downloaded. the class has methods to cancel and delete document-downloads, but also has methods to return the progress.
If possible the class can handle simultaneous downloads.

The problem is, I don’t know where to start?

  • 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-24T10:27:39+00:00Added an answer on May 24, 2026 at 10:27 am

    NSURLConnection is already asynchronous. All you need to do is to create NSURLConnection instances, associate them with your data structures, and have at it.

    Here’s an example where I assume you have one UIView per item. If you use a table view you can’t count on view instances, but instead associate a download with an NSIndexPath, or something else.

    @implementation MyDownloadView
    - (void)startDownload {
        NSMutableURLRequest *req = [[NSMutableURLRequest alloc] initWithURL:myURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10];
        [req setHTTPMethod:@"GET"];
        // Set headers etc. if you need
        [[[NSURLConnection alloc] initWithRequest:req delegate:self] autorelease];
        [req release];
    
        self.responseData = [[NSMutableData alloc] init];
    }
    
    - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
        // Alternatively, store to a file so you don't run out of memory
        [self.responseData appendData:data];
    }
    @end
    

    Then implement the other NSURLConnection delegate methods to do what you need.

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

Sidebar

Related Questions

I'm making an iPad app. In the app I have multiple UITextViews. I've already
I'm making an iPad app and I have this image: I'd like offer users
I'm making an iPad web-app, and the client would like it to have two
I have been reading The Business of iPhone and iPad App Development: Making and
I'm making the app-book for ipad like app-magazine. Now I'm using ScrollView and want
I'm making an application for the iPad. I have a view controll that has
I am making an Ipad app and im not using the views and view
I am making an iPad app, it currently has multiple UITableViews named like so:
In my app for iPad I have to use a Text View. I wrote
I have an iPad app I am making, but it crashes on startup even

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.