Re: AnyObject and protocols
Re: AnyObject and protocols
- Subject: Re: AnyObject and protocols
- From: Rick Mann <email@hidden>
- Date: Tue, 04 Aug 2015 16:23:59 -0700
> On Aug 4, 2015, at 16:22 , Quincey Morris <email@hidden> wrote:
>
> On Aug 4, 2015, at 15:58 , Rick Mann <email@hidden> wrote:
>>
>> I'm curious why, and what the right approach might be?
>
> As to why, the problem is that instances of a type conforming to a protocol aren’t necessarily objects. If you want them to be, try declaring your protocol like this:
>
> protocol P: class {
> …
> }
Awesome, thanks!
--
Rick Mann
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