Hey all, quick question. How you do pass around protocol references?

I'm looking to do something like what NSDistantObject uses to set a
protocol, (setProtocolForProxy:). That method takes a (Proxy *), and all
I've found is that in some headers they declare a class (@class Protocol).
So does this mean that sending @protocol(SomeProtocol) is just passing a
Class? I haven't been able to find anything else in the objc docs about
doing this.

Thanks much!
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to