• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Distributed Objects, delegates, and retain cycles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Distributed Objects, delegates, and retain cycles
      • From: Grigory Entin <email@hidden>
  • Prev by Date: Re: Java bridge
  • Next by Date: Re: Java bridge
  • Previous by thread: Re: Java bridge
  • Next by thread: Re: Distributed Objects, delegates, and retain cycles
  • Index(es):
    • Date
    • Thread