Skip navigation.
 
mlRe: how should I go about downloading files
FROM : Laimonas Simutis
DATE : Mon Apr 14 22:18:56 2008

On Fri, Apr 11, 2008 at 6:01 PM, Scott Anguish <<email_removed>> wrote:
>
>  On Apr 10, 2008, at 9:04 PM, Laimonas Simutis wrote:
>
> > Hey,
> >
> > This is my first cocoa projects so I am kind of finding my way around
> > the framework. The question I have is maybe more related to the design
> > practices with cocoa.
> >
> > I make a HTTP call to a server which gives me back a list of urls
> > pointing to mp3 files. For each url handling I created FileDownloader
> > class that inside uses NSURLDownload class to download the mp3 file.
> > All works fine but I have a problem with finding a solution for
> > "queuing" the downloads. I want to control how many files will be
> > downloaded concurrently (usually it will be one or two). However right
> > now what I have is basically this:
> >
>
>  Have a look at NSOperation and NSOperationQueue in concert with
> NSURLDownload
>
>  this will allow you to do this, as well as change priorities, control how
> many downloads can occur at the same time, etc..


NSOperation* classes look like what I could definitely use, but the
docs mention that NSOperation and
NSOperationQueue are available for MacOSX 10.5 and above. I am
developing on 10.4. And the question arose here, when the
documentation states that a class is available for 10.5 and later does
that mean that if I use this class my app is compatible only with mac
osx 10.5 and later or does that mean that to take advantage of this
class I must run 10.5 but once compiled it will run in previous
versions of mac OS?

Related mailsAuthorDate
mlhow should I go about downloading files Laimonas Simutis Apr 11, 03:04
mlRe: how should I go about downloading files Michael Vannorsdel Apr 11, 03:13
mlRe: how should I go about downloading files Scott Anguish Apr 12, 01:01
mlRe: how should I go about downloading files Laimonas Simutis Apr 14, 22:18
mlRe: how should I go about downloading files John Stiles Apr 14, 22:25