Lifetime of an NSURLHandle
Lifetime of an NSURLHandle
- Subject: Lifetime of an NSURLHandle
- From: Jonathan Wight <email@hidden>
- Date: Wed, 19 May 2004 13:55:42 -0400
I have an NSURLHandle that seems to be releasing itself when the
download is complete. Is this expected behavior for the class?
I have a controller that manages the download of a large file,
presenting a progress dialog and so on. That object is passed a URL
(which I retain). By using the URL's URLHandleUsingCache method I get a
NSURLHandle (again I retain). At some point after the background
download is complete I release the controller object, which then
releases the URL and the NSURLHandle, unfortunately when the
NSURLHandle is released I get told that I'm trying to send a message to
a dealloc-ed object.
Who is releasing the NSURLHandle for me? I've found nothing in the
NSURLHandle documentation that tells me to treat it as a special
object...
Jon.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.