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 (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 arch...@mail-archive.com

Reply via email to