Re: DO: Setting Protocol before leaving server...
Re: DO: Setting Protocol before leaving server...
- Subject: Re: DO: Setting Protocol before leaving server...
- From: Shaun Wexler <email@hidden>
- Date: Thu, 9 Oct 2003 03:46:40 -0700
On Oct 8, 2003, at 11:44 AM, Joshua Orr wrote:
Is there any way to set the objects protocol before it leaves the
server to
the client, so that the clients proxy object at the client has the
protocol
set without the client having to do anything?
Or do you always have to set the protocol explicitly at the receiving
end?
It is not required to set the protocol at the receiving end; each
message to an "unknown" method will require an extra round trip the
first time it is called. Setting a protocol eliminates this.
If you want to set the protocol on the server side, you can vend an
instance of NSProtocolChecker your root object, instead. This will
filter out all messages sent to the server which don't comply with the
protocol, whereas setting a protocol "hint" on the client side does not
prevent you from sending any arbitrary message you wish. It's for
efficiency.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.