Does autoreleased NSURLConnection object guarantee job completion?
Does autoreleased NSURLConnection object guarantee job completion?
- Subject: Does autoreleased NSURLConnection object guarantee job completion?
- From: Hunje Cho <email@hidden>
- Date: Thu, 12 Aug 2010 15:26:52 +0900
Hello,
I'm just wondering whether autoreleased NSURLConnection object can
finish its job before released. Like below codes.
// connect to http server for downloading a large file
NSURLConnection* con = [NSURLConnection connectionWithRequest:request
delegate:self];
// con is not saved as property. I just add codes of delegate messages.
// do another job
Does it guarantee to download a file completely? (especially large file)
Should I use alloc and initialized object of NSURLConnection or
increase retain count of autoreleased object?
_______________________________________________
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