Re: NSURLConnection failing [SOLVED]
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