Distributed objects and retain/release
Distributed objects and retain/release
- Subject: Distributed objects and retain/release
- From: Sailor Quasar <email@hidden>
- Date: Sun, 8 Jun 2003 06:10:05 -0400
I'm using distributed objects over NSSocketPorts (and NSConnection, of
course), and I'm trying to add an NSProtocolChecker. An NSConnection is
set up to the server process, and the root object publishes a method
for returning a separate connection-specific object to the client, as
well as receiving a proxy to a similar object in the client. The
problem is that I seem to need to call -retain on the proxy, but since
niether NSProxy nor my protocol implements -retain, I end up with
NSInvalidArgumentException's when I try to use an NSProtocolChecker. If
I don't try to -retain the proxy, I crash due to accessing invalid
objects. What's the solution here?
-- Sailor Quasar, High Codemaster of the Web, scourge of systems
cvs server: Updating Quasar/brain/caffiene
A pepsi
R coke
Email: email@hidden
_______________________________________________
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.