• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (NSURLDownload)The control never reaches downloadDidFinish:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (NSURLDownload)The control never reaches downloadDidFinish:


  • Subject: Re: (NSURLDownload)The control never reaches downloadDidFinish:
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 28 Sep 2007 00:36:13 -0400


On Sep 27, 2007, at 7:18 PM, deepak gopal wrote:

Hi

I am downloading a file from the server.
Its a zip file and I need to uarchive it.
I have the code in place (copied below) and I
unarchive the file in downloadDidFinish:
But the control doesn't seem to reach
downloadDidFinish:
There is no syntax error.


I'm just guessing here.. but


cachePolicy:NSURLRequestReloadIgnoringCacheData
                           timeoutInterval:60.0];
NSURLDownload *download = [[NSURLDownload alloc]
initWithRequest:request

      delegate:self];
     [download autorelease];


you're autoreleasing download. that means that it can disappear as soon as the method finishes, if not at the start of the next runloop. and NSURLDownload requires a runloop running to work.


So, my guess is that the object is being released and things are never finishing as a result.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: (NSURLDownload)The control never reaches downloadDidFinish:
      • From: deepak gopal <email@hidden>
References: 
 >(NSURLDownload)The control never reaches downloadDidFinish: (From: deepak gopal <email@hidden>)

  • Prev by Date: Confused by grouping with NSUndoManager
  • Next by Date: Re: [Moderator] unacceptable behavior
  • Previous by thread: Re: (NSURLDownload)The control never reaches downloadDidFinish:
  • Next by thread: Re: (NSURLDownload)The control never reaches downloadDidFinish:
  • Index(es):
    • Date
    • Thread