• 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: NSURLConnection failing [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection failing [SOLVED]


  • Subject: Re: NSURLConnection failing [SOLVED]
  • From: "Hamish Allan" <email@hidden>
  • Date: Tue, 26 Feb 2008 18:07:02 +0000

On Tue, Feb 26, 2008 at 5:55 PM, Jerry Krinock <email@hidden> wrote:

>  I'd call that a pretty serious garbage-collection bug in
>  NSURLConnection!  Unless you'd sent it a -cancel, it ain't garbage.

Unless you keep a strong reference to it, it *is* garbage.

> On 2008 Feb, 25, at 8:18, Doug Penny wrote:
>> To work around this, after creating the
>> NSURLConnection object I just stick it in a NSMutableSet.  When the
>> delegate gets the -connectionDidFinishLoading: message I remove the
>> connection object from the set.  Works great now.
>
>  Yep, that would work-around it.

It's not a workaround... it looks as if Doug hadn't been using GC,
he'd have been leaking an NSURLConnection.

Hamish
_______________________________________________

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

References: 
 >Re: NSURLConnection failing [SOLVED] (From: "Doug Penny" <email@hidden>)
 >Re: NSURLConnection failing [SOLVED] (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Spotlight Importer
  • Next by Date: Re: NSString floatValue issue
  • Previous by thread: Re: NSURLConnection failing [SOLVED]
  • Next by thread: Re: NSURLConnection failing [SOLVED]
  • Index(es):
    • Date
    • Thread