Re: passing around Protocols like passing SEL?
Re: passing around Protocols like passing SEL?
- Subject: Re: passing around Protocols like passing SEL?
- From: Mike Abdullah <email@hidden>
- Date: Sun, 20 Dec 2009 22:52:25 +0000
See http://developer.apple.com/mac/library/documentation/cocoa/conceptual/ObjectiveC/Articles/ocProtocols.html#//apple_ref/doc/uid/TP30001163-CH15-TPXREF149
On 20 Dec 2009, at 20:15, aaron smith wrote:
> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden