On Tue, Feb 26, 2008 at 5:55 PM, Jerry Krinock <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]