Re: Lifetime of an NSURLHandle
Re: Lifetime of an NSURLHandle
- Subject: Re: Lifetime of an NSURLHandle
- From: Philip Mötteli <email@hidden>
- Date: Wed, 19 May 2004 21:46:46 +0200
Am 19.05.2004 um 19:55 schrieb Jonathan Wight:
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...
I don't know, if that's the reason, but I know, that "FTP" URLs are not
cached.
Re
Phil
_______________________________________________
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.