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

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.


  • Follow-Ups:
    • Re: Lifetime of an NSURLHandle
      • From: Jonathan Wight <email@hidden>
    • Re: Lifetime of an NSURLHandle
      • From: Philip Mötteli <email@hidden>
  • Prev by Date: Re: rounding to a multiple of x?
  • Next by Date: Re: rounding to a multiple of x?
  • Previous by thread: [newbie] looking for help for my 1st decent project
  • Next by thread: Re: Lifetime of an NSURLHandle
  • Index(es):
    • Date
    • Thread