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 (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/cocoadev%40mikeabdullah.net > > This email sent to cocoa...@mikeabdullah.net _______________________________________________ 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