Distributed Objects, delegates, and retain cycles
Distributed Objects, delegates, and retain cycles
- Subject: Distributed Objects, delegates, and retain cycles
- From: Derrick Bass <email@hidden>
- Date: Sun, 1 Oct 2006 16:42:24 -0500
I'm using Distributed Objects to perform a long operation in a
separate process. The vended object communicates the operation's
progress by calling a method in its delegate. The problem is that if
the object doesn't retain the delegate then the proxy to it goes
away, so its pointer becomes stale. On the other hand, if it does
retain the delegate, the retain gets propagated back to the client;
but the delegate happens to be the object that's retaining the vended
object, so I get a retain cycle.
Is there a good solution to this problem?
Derrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden