Re: Distributed objects and retain/release
Re: Distributed objects and retain/release
- Subject: Re: Distributed objects and retain/release
- From: Daniel Zitter <email@hidden>
- Date: Sun, 8 Jun 2003 08:42:09 -0700
I haven't used a protocol checker myself, so I cannot be sure of the
correct answer, but I can suggest a course of action.
Enhance your protocol to incorporate <NSObject> and see if that gets
things moving. Something like:
@protocol MyProtocol <NSObject>
should work.
If this does the trick for you, it may suggest that the documentation
should be enhanced to indicate the frequent (if not ever-present) need
to incorporate <NSObject> in checked protocols for use over D.O. for
exactly the reason you've outlined.
Dan
Date: Sun, 8 Jun 2003 06:10:05 -0400
Subject: Distributed objects and retain/release
From: Sailor Quasar <email@hidden>
To: email@hidden
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.