Re: (NSURLDownload)The control never reaches downloadDidFinish:
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