Re: DO Proxy
Re: DO Proxy
- Subject: Re: DO Proxy
- From: Timothy Ritchey <email@hidden>
- Date: Tue, 14 May 2002 08:11:45 -0500
On Monday, May 13, 2002, at 11:10 PM, Ovidiu Predescu wrote:
2) Add a third app C. If C connects to B and asks for X, it will
establish its own connection to A. B can disappear, and C's proxy to X
will keep on trucking.
I wonder how this is possible, since C has a proxy to X in A. If you
pass the proxy to X from C back into A, A should get its own object,
and not a proxy. Is this last proxy a proxy to C's proxy to A, if you
understand what I mean ;)? Something doesn't sound right to me if
this is the case, as it contradicts the way the so-called "triangle
connection" works in DO.
C's proxy to X in A has its own direct connection. It does not go
through B any more. I am almost 100% positive on this, as I quit app B,
and the connection to X in A continued to work. You mention triangle
connection in quotes as if this is a known entity. I haven't run across
this in any documentation anywhere. Might you know where I could find
some docs on how DO is implemented, or its specs?
But since in the case of a proxy to a
proxy the receiver's class is the Proxy class, it is impossible to
obtain this information.
The current implementation seems to not create proxy-to-proxy. The proxy
in C identifies itself properly as class X. I also hooked into the
connection creation notification, and can see a new connection
appear/disappear as C retains and releases its proxy.
The GNU Objective-C runtime helps in such a case since the selector
has the method signature information associated with it. Nevertheless,
the correct solution is to short-circuit the triangle connection by
creating a direct connection.
If my experiment worked, this happens in the background automatically.
Cheers,
tim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: DO Proxy (From: Ovidiu Predescu <email@hidden>) |