Re: progress bar when creating file
Re: progress bar when creating file
- Subject: Re: progress bar when creating file
- From: David Chan <email@hidden>
- Date: Wed, 9 Nov 2005 12:59:03 +0800
O oh.. my apology, yup I needed to change my code a bit to allow
multiple download and now it works fine and I can limit my concurent
download as well.
But still joar, how could I determine the total bytes of the file to
be appended using NSURLConnection? coz I assume I need that total
bytes in order to update the progress indicator whenever the
didReceiveData function is called?
On a totally unrelated matter, I would also like to programmatically
set this application running on the background the moment the user log
into the OS. I've so far been able to program it to appear on the
dock. But apparently the application would only run the moment the
user click and bring it up.
Is there anyway I could set such thing?
Thanks a lot.
On 11/8/05, j o a r <email@hidden> wrote:
>
> On 8 nov 2005, at 05.04, David Chan wrote:
>
> > Upon using the NSURLConnection approach apparently I could somehow
> > concurrently download multiple items at the same time.
> > Problem being, the object that was used for the first item was also
> > used for the second item and somehow it just mix up and my application
> > would exit with signal 11 (SIGSEGV) whenever I have more than 1 item
> > in the list.
> >
> > Is there someway I could use NSURLConnection delegate to allow
> > multiple item download and to control the max no. of items to be
> > downloaded at one time?
>
> That's not really much of a question for us to answer. The answer
> however is of course yes, you can run multiple downloads in parallell
> using multiple instances of NSURLConnection.
> Why you fail to do that currently, and why you get crashes, is
> impossible for us to answer without more information. Your code
> apparently can't handle multiple downloads. You need to get your
> thinking cap on and inspect your code to see where it fails. The
> backtrace from the crash should give you a good indication of where
> the problem could be.
>
> j o a r
>
>
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden