• 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: Lifetime of an NSURLHandle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Lifetime of an NSURLHandle (From: Jonathan Wight <email@hidden>)

  • Prev by Date: Re: [OT]Re: rounding to a multiple of x?
  • Next by Date: Re: NSTableViewBindig inversing rows and columns ?
  • Previous by thread: Lifetime of an NSURLHandle
  • Next by thread: Re: Lifetime of an NSURLHandle
  • Index(es):
    • Date
    • Thread