Re: Transitioning to GC-supported
Re: Transitioning to GC-supported
- Subject: Re: Transitioning to GC-supported
- From: Jens Alfke <email@hidden>
- Date: Mon, 26 Oct 2009 21:25:13 -0700
On Oct 26, 2009, at 8:43 PM, Dave Keck wrote:
For example, I have an object that [self retain]; while it does some
work that takes awhile. I don't hold a reference to this object
anywhere after it's created - it simply notifies its delegate when its
finished.
I remember a thread about this a few weeks ago. I'm pretty sure that
there will be a reference to that object somewhere, since it is either
the the receiver of a message running on an NSThread, or the target of
an NSTimer, or the delegate of an NSURLConnection, or something like
that.
That is, it's either actively running (and thus has pointers to itself
on the stack), or it's waiting for something else to call it via a
pointer to it.
—Jens
_______________________________________________
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