Re: NSURLConnection failing [SOLVED]
Re: NSURLConnection failing [SOLVED]
- Subject: Re: NSURLConnection failing [SOLVED]
- From: Jerry Krinock <email@hidden>
- Date: Tue, 26 Feb 2008 09:55:54 -0800
On 2008 Feb, 25, at 8:18, Doug Penny wrote:
Turns out garbage collection was doing me in. When the
NSURLConnection object was hanging out waiting for a response, it
would get collected.
I'd call that a pretty serious garbage-collection bug in
NSURLConnection! Unless you'd sent it a -cancel, it ain't garbage. I
sure hope that bugs like this get reported and fixed before I try and
use GC!
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.
_______________________________________________
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