• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: passing around Protocols like passing SEL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >passing around Protocols like passing SEL? (From: aaron smith <email@hidden>)

  • Prev by Date: tracking EXC_BAD_ACCESS error in applescript command
  • Next by Date: Re: passing a method name?
  • Previous by thread: passing around Protocols like passing SEL?
  • Next by thread: Localization strategies?
  • Index(es):
    • Date
    • Thread